Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 5th May 2011, 09:52 AM   #1
Tony Marriott
War Room Member
 
Tony Marriott's Avatar
 
Join Date: 2009
Location: UK
Posts: 1,294
Thanks: 381
Thanked 548 Times in 405 Posts
Default
Can Anyone Createte/Fix A PHP Script. Get URL via Proxy
Share on: 
fb share twitter share gplus share more share

Can someone please give me price for the following task

I want a PHP script to get the contents of a web URL file via a proxy.
The script below appears technically correct but does not work.

The script does not need to be this one fixed it can be a completely new one as long as it works in practice.

alternatives using fopen or file_get_contents, or any other working solution is poerfectly acceptable

I would also like additional “fast” script to rotate or randomly select the proxy from a list/db file.

Please PM with answers or email Tony.Marriott@hotmail.co.uk

thanks guys.
-----------------------------------------


$filename is an arbitary web site

$proxy is a free public proxy but was Working at the time of posting


$filename = "http://www.Google.com”;

$proxy = "60.175.203.243:8080";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $filename);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
?>

Tony Marriott is offline   Reply With Quote
Unread 18th May 2011, 10:38 PM   #2
Active Warrior
 
Join Date: 2009
Posts: 69
Thanks: 3
Thanked 7 Times in 7 Posts
Default
Re: Can Anyone Createte/Fix A PHP Script. Get URL via Proxy
Share on: 
fb share twitter share gplus share more share

This should be working. If it's not, port 8080 is blocked by your firewall or the proxy is not working correctly.

I can modify this script to rotate proxies for $25. PM me if you are interested.

leiden is offline   Reply With Quote


Bookmarks

Tags
createte or fix, php, proxy, script, url


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:44 PM.