Page 1 of 1

Execute a .sh script in PHP

Posted: Sun Aug 10, 2008 7:55 pm
by BungieHQ
I need to execute a .sh script from a PHP file.

Details:
The server is Linux.
The file and script are in the same directory.
It needs to print the results of the file to the screen.
The script is called: ninjahunt.sh


Thanks in advance.

(Please move to the coding forum! Sorry!)

Re: Execute a .sh script in PHP

Posted: Mon Aug 11, 2008 1:48 am
by jaoudestudios
If you search on php.net it will give you the command exec();