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!)
Execute a .sh script in PHP
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Execute a .sh script in PHP
If you search on php.net it will give you the command exec();