Executing system commands in a php script
Hi,
I have a php script in which i am executing some shell commands (e.g date, who, ping, shutdown:) etc) using the System command. When I run the script from command line, every thing goes fine because I have the root privileges. But if I run the script from web browser, only those commands are executed which don't need root privilages. How to fix it? It might be insecure but at the moment, I am not concerned about security. Regards, Atiq |
Maybe it will work when running those commands by sudo ?
|
Quote:
|
All times are GMT -5. The time now is 12:58 PM. |