07-01-2008, 10:25 AM
|
#8 (permalink)
|
|
The Wanderer
Join Date: Apr 2008
Location: Cloud 9
Posts: 19
Thanks: 0
|
HA! FOUND IT!!!!!
I didn't configure our networks Proxy Server in the options!!
If anybody else has this problem here is the solution:
Code:
$proxy="<proxy_ip>:<proxy_port_no>";
$ch = curl_init('http://www.google.co.uk/'); // the target
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return the page
$result = curl_exec($ch); // executing the cURL
curl_close($ch); // Closing connection
echo $result;
Hope this helps somebody
Jen
|
|
|
|