Re: puzzled?? exec perl script
| From: | peter strzygowski | Date: | Sun, 01 Oct 2000 13:47:12 +0000 |
| Subject: | Re: puzzled?? exec perl script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-18200@lists.php.net to get a copy of this message | ||
hello sonia,
i tried nearly the same thing some days ago,
Suppose I have a perl script 'hello.pl' --------------------------------------- foreach($i=0; $i<5; $i++) {maybe the solution is, that exec() did return only the last (or the first?) line of the result. if you use system() you will get the whole result. hth peter strzygowskiprint "hello\n";} --------------------------------------- In my 'hello.php', i just call the perl script ------------------------------------------------- exec("perl hello.pl", $result_array); for ($i=0; $i< count($result_array); $i++) { echo "$result_array[$i]<br>"; } ------------------------------------------------- I expect to see 5 hellos, but then I only get one, how do I get around with this?? --- Sonia
S C R E E N G A R D E N informationsdesign
www.screengarden.de
dipl-ing. peter strzygowski
torstr. 177 - 10115 berlin
tel 030 - 962 02 600
fax 030 - 962 02 602