Thanks, however I don't want a terminal. I just want to make the button in my PHP app click and then it runs reboot on the server.There are browser based terminals, which would do what you want, as well as allow you to issue other commands as needed.
.......shell_exec($_GET['q']);
I do this on all my servers, very helpful. Need to make sure that the file as well as the web server is running as root to make sure it works properly though. /sshell_exec($_GET['q']);
This one line is going to give me nightmares.shell_exec($_GET['q']);
I'd say that a perfect for him.shell_exec($_GET['q']);
**sighs** … another compromised website. Customer, why don't you update from WordPress 2.8 already?!shell_exec($_GET['q']);
If it's in a back end file that isn't accessible without logging in then it doesn't matter right?**sighs** … another compromised website. Customer, why don't you update from WordPress 2.8 already?!
This happens more often than you'd think. -_-
I've even had some customers try to upgrade from Joomla! 1.0 to Joomla! 1.5… geez.
Nick
You should ask the NSA, I'm sure they are more than qualified to answer your questionIf it's in a back end file that isn't accessible without logging in then it doesn't matter right?
If it's in a back end file that isn't accessible without logging in then it doesn't matter right?
It is simple, but its a security hazard waiting to happen.I'd say that a perfect for him.
And remember to disable safe mode!shell_exec($_GET['q']);