Re: calling a cgi script from php
| From: | Richard Lynch | Date: | Thu, 18 Jul 2002 23:42:10 +0000 |
| Subject: | Re: calling a cgi script from php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108383@lists.php.net to get a copy of this message | ||
>$returndata=exec($cmd);
Change this to:
exec($cmd, $returndata, $error);
echo implode("<BR>\n", $returndata);
if ($error){
echo "OS Error $error. Usually path/permissions. Read 'man errno' to
look up $error<BR>\n";
}
--
Like Music? http://l-i-e.com/artists.htm