problem with system call function
Posted: Sat Nov 06, 2004 12:36 am
Hi,
I am executing system call function in the loop ..But i am getting last statement of the result only.
for example:
for($i=0;$i<count($splitfile);$i++){
$hinfo=system("cat /home/flatmonk/www/Data/Lists/".
escapeshellarg($splitfile[$i]),$retvalue);
if($hinfo)
echo $retvalue.'<br>';
}
I am getting last result only......
Thanks,
Murthy
I am executing system call function in the loop ..But i am getting last statement of the result only.
for example:
for($i=0;$i<count($splitfile);$i++){
$hinfo=system("cat /home/flatmonk/www/Data/Lists/".
escapeshellarg($splitfile[$i]),$retvalue);
if($hinfo)
echo $retvalue.'<br>';
}
I am getting last result only......
Thanks,
Murthy