Execute a .sh script in PHP

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
BungieHQ
Forum Newbie
Posts: 1
Joined: Sun Aug 10, 2008 7:51 pm

Execute a .sh script in PHP

Post 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!)
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Execute a .sh script in PHP

Post by jaoudestudios »

If you search on php.net it will give you the command exec();
Post Reply