Skip to content
Advertisement

Can’t Execute a PHP file via HTTP

Here is a command I successfully execute in terminal:

JavaScript

I want to execute that code every time a user visits a file, which exists in the same directory as the file mentioned in the command.

Here is the code in the file:

JavaScript

Running the file in the browser, $retval = 127 wit $output = "sh: PHP: command not found".

How can I successfully run the command every time a user visits the file?

Advertisement

Answer

Instead of referencing PHP, I got this to work by executing PHP bin file:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement