Reputation: 37
I wanted to disable some functions but it seems my modifications don't work.
Under wamp/bin/php/php5.3.13/php.ini I uncommented the disable_functions parameter and added the following values:
disable_functions = shell_exec, system
When I view phpinfo(); disable_functions seems unaffected and has no assigned values. I also tried restarting wamp and its services but the result is still the same.
Am I missing something rather obvious?
Thanks in advance :)
Upvotes: 0
Views: 43
Reputation: 1423
Just a guess here; maybe try removing the spaces from your declaration like so:
disable_functions=shell_exec,system
Let me know if this works, if not I'll keep digging.
Upvotes: 0
Reputation: 5524
Restart your apache web server.
Linux:
service restart apache
Windows:
Open Command prompt as Administrator:
net stop apacheX.Y
net start apacheX.Y
Relace x.y with your version
Upvotes: 1