Entry
How can I get the output of a perl script in my PHP script?
How can I get the results returned from a call to exec()?
On NT with IIS4, exec("c:/curl.exe", $out, $how) returns $how, but no $out. Why?
Aug 12th, 1999 01:54
Nathan Wallace, Doseok Kim, Teodor Cimpoesu
Just read the docs carefully.
exec("/bin/something",$out,$how);
http://www.php.net/manual/function.exec.php3
execs something, outputing in $out array (one line per entry), and
eventually giving the exit status in $how. If you want the perl script
executed via CGI, see virtual().