Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

160
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda