I am working on a script for my users, in which at a part of it i want to let them know if "exec" command is enabled and can be used in their server,
is that possible?
The documentation doesn't mention the possibility that the exec (or other similar functions) can be disabled.
The only thing I can think of is to use the function_exists function to check if the exec function exists.
many hosts do disable it,
i think it works like adding it to the php.ini :
[PHP]disable_functio ns = exec[/PHP]
I am not sure that "function_exist s" would really work, and since my host has it disabled and I don't have access to a host with exec enabled, I can't check it.
I was wondering if a way is known to check for it.
edit:
disabled/enabled, i think it returns that the function exists, but when disabled, it doesn't work.
Comment