gamak Posted June 24, 2009 Share Posted June 24, 2009 Not sure why this happens. The code below works like a champ $curl = curl_init( ); curl_setopt($curl, CURLOPT_URL, "http://www.php.net"); curl_exec($curl); curl_close($curl); but the code below just gives me a blank page with absolutely no errors. The only difference is i'm trying to capture the response and store it into a variable. $curl = curl_init( ) curl_setopt($curl, CURLOPT_URL, "http://www.php.net"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($curl); curl_close($curl); print $result; Link to comment https://forums.phpfreaks.com/topic/163514-curl-returns-blank-pages-when-i-use-curl_setoptcurl-curlopt_returntransfer/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.