View Single Post
Old 06-26-2008, 10:43 AM   #1 (permalink)
Jenski
The Wanderer
 
Join Date: Apr 2008
Location: Cloud 9
Posts: 15
Thanks: 0
Jenski is on a distinguished road
Default yet another curl question....

ok, I have this code:

Code:
$ch = curl_init('http://www.google.co.uk'); // the target
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return the page
$result = curl_exec($ch); // executing the cURL
curl_close($ch); // Closing connection
echo $result;
Which I got from here:
TalkPHP - cURL Basics

Any ideas why I would end up with a blank screen? with no errors?
Do I need to configure something with the curl library or something?
I'm using php 5
Thanks
Jen
Jenski is offline  
Reply With Quote