a passthru() question/problem
Posted: Mon Nov 25, 2002 9:29 am
hello...i've done some searching through the forums here for related posts on the passthru() function, but I have not found the answer I am seeking. So I figured I'd post about this function again and see if I someone can help out...
Problem: when I use the passthru() function it only returns the last line of the application I am running through it.
my code:
<?php
passthru('../cgi-bin/crnews/crnews.pl');
?>
"passthru -- Execute an external program and display raw output "
Now, if I understand this function correctly, this should execute the perl script and display the raw output of the progam, correct?
Well, it does execute the program, BUT only returns the last line of the output. (I've tried with these as well: exec(), system() and they do not work either. )
Basically, I want to execute a perl script and display the output on a .php page.
Maybe I'm using the wrong function? Or maybe this is just not possible?
Any help would be most appreciated!
Thanks,
webguy
Problem: when I use the passthru() function it only returns the last line of the application I am running through it.
my code:
<?php
passthru('../cgi-bin/crnews/crnews.pl');
?>
"passthru -- Execute an external program and display raw output "
Now, if I understand this function correctly, this should execute the perl script and display the raw output of the progam, correct?
Well, it does execute the program, BUT only returns the last line of the output. (I've tried with these as well: exec(), system() and they do not work either. )
Basically, I want to execute a perl script and display the output on a .php page.
Maybe I'm using the wrong function? Or maybe this is just not possible?
Any help would be most appreciated!
Thanks,
webguy