How to run a shell script in PHP(windows) URGENT!!!
Posted: Sat Apr 01, 2006 12:54 am
Hi all,
I am using PHP in Windows XP.I want to run a shell script which generates an output file, using System function.How can I implement it?
I have tried in the following way(And open the php page using IE.).
for example:
system('echo "I like PHP" > output' ,$retval);
It is not creating any file.
But if i do like " system('echo "I like PHP"',$retval); " then it is printing fine on IE.
Can you please guide me.
Thanks in advance,
Uday.
I am using PHP in Windows XP.I want to run a shell script which generates an output file, using System function.How can I implement it?
I have tried in the following way(And open the php page using IE.).
for example:
system('echo "I like PHP" > output' ,$retval);
It is not creating any file.
But if i do like " system('echo "I like PHP"',$retval); " then it is printing fine on IE.
Can you please guide me.
Thanks in advance,
Uday.