system cmd like

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toshesh
Forum Commoner
Posts: 33
Joined: Thu Jun 19, 2003 9:32 pm

system cmd like

Post 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
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Is shell_exec() what you are looking for?
toshesh
Forum Commoner
Posts: 33
Joined: Thu Jun 19, 2003 9:32 pm

Post by toshesh »

yes yes yes yes yes yes yes yes!!!!!!!!!!!!!!!!!!!!!!!!!!!

thank you thank you!!!
Post Reply