Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
PHP directives in one place. Is this a bad idea?

If php works with apache as module, then I need to set the php directives (PHP_INI_PERDIR) using .htaceess with php_value or php_flag.

Else, I need to create my own .user.ini file with this directives.

Now, if a new directive appears, I must edit both files, because I want to create my app available for both cases.

The question:

What if, only if ini_get returns incorrect values, I create the .htaccess or the .user.ini file using php and redirect after ? Redirect because this can't be done on the fly.

In this way, I let the php to do all the work for me with a config file which contains the directives.

Is this a bad idea ? If yes, please tell me what could go wrong ?

I need to upload my app on multiple servers and I want to edit configurations as less as I can.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda