Reputation: 777
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 web server?
Thanks
Upvotes: 1
Views: 1252
Reputation: 54072
TRY with
curl_setopt($curl,CURLOPT_FAILONERROR,FALSE);
and print the error
$result = curl_exec($curl);
by print_r($result);
Upvotes: 0