RE: [PHP] problems with curl + exec
| From: | Dan Rossi | Date: | Mon, 31 Mar 2003 21:49:13 +0000 |
| Subject: | RE: [PHP] problems with curl + exec | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141750@lists.php.net to get a copy of this message | ||
sorry worked it out i had stderr in the escape string
-----Original Message-----
From: Dan Rossi [mailto:daniel@electroteque.org]
Sent: Tuesday, April 01, 2003 7:39 AM
To: Php-General
Subject: [PHP] problems with curl + exec
hi guys , this is a wierd problem , for some reason wget is fine to return
stderr to stdoutput , i'll get an exact error in key 4 , ie OK or HTTP 404 ,
but with curl it is not returning the exact errorode or outputting an error
?
here are my instructions although for a 404 instead of 22 i am getting an
errorcode of 23 or sometimds even 6 ?
$execstring=escapeshellcmd($this->command." -stderr error -v --fail -O
".$url." 2>&1 ".$options);
@exec($execstring, $stdout, $errorcode);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php