Page 1 of 1

How to execute a shell script and diplay the output

Posted: Fri Oct 06, 2006 8:57 am
by guarriman
Hi.

I'm trying to execute a shell script with PHP, and display the output through my website.

Is it possible? Thank you very much.

Posted: Fri Oct 06, 2006 9:03 am
by Jenk

Code: Select all

echo shell_exec('/path/to/executable/script');

// or..

echo `/path/to/executable/script`;