April 22nd, 2013, 04:55 PM
Set different php.ini for script laying in different folders
Supposing I have a classical lamp environment.
I need to set php script in different directories ( or directory trees ) to refer to a different php.ini, cause I want to disable certain features.
I'm putting up an educational environment for school students so I need to create sandboxed environments for them.
Asking for ideas and best practices.
Last edited by carmichael84; April 22nd, 2013 at 04:56 PM.
Reason: further specifications
April 22nd, 2013, 05:04 PM
Depending on your setup a per-directory php.ini or (more commonly) a .htaccess with php_values can override whatever you want to override.