PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I tried to execute the following command to retart the linux machine but failed. Any idea? I tried other commands like exec, system, etc. All don't work.
You need to have superuser permission to issue the shutdown command. PHP runs as the webserver (typically www-data or nobody) and has extremely restricted permissions.