Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The PHP shell exec function runs the command on the server where the PHP script is executed. The command prompt on the server has access to system resources that may not be available on the client's browser. In addition, the HTML browser executes the PHP script on the client-side, and it doesn't have the necessary permissions to execute shell commands. Therefore, PHP shell exec function cannot be executed on the client's browser.