Page 1 of 1

system cmd like

Posted: Thu Jun 19, 2003 9:32 pm
by toshesh
Hi,

I want to be able to read in the output from a php script and say store it as a string. How can i do this? at the moment the system function prints out the data on cmd line. Please someone help!

e.g. on cmd
>php test.php

Posted: Thu Jun 19, 2003 9:35 pm
by nielsene
Is shell_exec() what you are looking for?

Posted: Thu Jun 19, 2003 9:40 pm
by toshesh
yes yes yes yes yes yes yes yes!!!!!!!!!!!!!!!!!!!!!!!!!!!

thank you thank you!!!