06-30-2008, 04:32 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: May 2008
Posts: 175
Thanks: 9
|
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($ch, CURLOPT_RETURNTRANSFER, 1); // 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.
|
|
|