Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!