[PHP] puzzled?? exec perl script From: Sonia Tsui (sonia <email protected>)
Date: 09/29/00

Suppose I have a perl script 'hello.pl'
---------------------------------------
foreach($i=0; $i<5; $i++) {
        print "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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>