dragunu Posted May 29, 2007 Share Posted May 29, 2007 Hello phpfreaks community. I have the following code: <?php $exec = exec("/var/www/script.pl"); print $exec; ?> now the output of the script is: Line1 Line2 Line3 Line4 Now, with the php code above, i am only getting "Line4". How is it possible to insert everything in an array where the values are divided by a new line value? thx william Link to comment https://forums.phpfreaks.com/topic/53419-a-small-help-with-the-exec-function/ Share on other sites More sharing options...
trq Posted May 29, 2007 Share Posted May 29, 2007 <?php $exec = shell_exec("/var/www/script.pl"); print $exec; ?> Link to comment https://forums.phpfreaks.com/topic/53419-a-small-help-with-the-exec-function/#findComment-264011 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.