faqts : Computers : Programming : Languages : PHP

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

6 of 7 people (86%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

I wish to call a /usr/local/bin/pgp program and then put the output into a variable, which way best?

Feb 22nd, 2008 19:55
dman, Henrik Hansen, TOm h, http://www.ttnr.org


$program = "/usr/local/bin/pgp";
$output = system($program);
echo $output;