If it is linux or unix, you should be able to execute the reboot command, assuming you have permission. I'm not what will happen to your script though once you do, as it'll probably be killed immediately.
Hi, Please study sodu then you will understand , sodu gives root power to any thread on linux. I think i have to find solution my self. Thanks,
Note: The below is dangerous if you're unsure what you're doing You'll need to visudo as root, add something like: user ALL=(ALL) NOPASSWD: /sbin/shutdown Code (markup): Then run: <?php `shutdown -r now`; ?> PHP: Never use nobody or apache. The script should run as user (replace into visudo code above) but that user shouldn't be shared by other scripts, i.e. nobody. If you run it as root, just the PHP code is required. Jay