faqts : Computers : Programming : Languages : PHP : Function Libraries

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 25 people (52%) answered Yes
Recently 5 of 9 people (56%) answered Yes

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().