View Single Post
Old 10-19-2007, 11:30 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Here, I'll save you some time. Rewrite for cURL. It'll save you many, many, many headaches.

Code:
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $requestUrl);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($ch, CURLOPT_TIMEOUT, 'timeout_in_seconds');
     curl_setopt($ch, CURLOPT_PROXY, 'proxy_ip:proxy_port');
     $data = curl_exec($ch);
     curl_close($ch);
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote