View Single Post
Old 06-30-2008, 04:32 PM   #4 (permalink)
drewbee
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

Try adding a trailing slash after the url. Curl acts funny with some server setups.

PHP Code:
$ch curl_init('http://www.google.co.uk/'); // the target
curl_setopt($chCURLOPT_RETURNTRANSFER1); // return the page
$result curl_exec($ch); // executing the cURL
curl_close($ch); // Closing connection
echo $result
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote