Capture curl stderr and print stdout in php
I'm using curl & php and something's not working.
How can I capture STDERR and print it to STDOUT in php when running through a开发者_如何学C web server?
Thanks
if (curl_errno($ch)) { echo curl_error($ch); }
TRY with
curl_setopt($curl,CURLOPT_FAILONERROR,FALSE);
and print the error
$result = curl_exec($curl);
by print_r($result);
精彩评论