View Single Post
Old 04-04-2007, 04:48 AM   · #81
champ_rock
Senior Member
 
champ_rock's Avatar
 
Name: Akshay Jain
Location: http://uck.in
Trader Rating: (99)
Join Date: Oct 2006
Posts: 2,706
NP$: 3778.80 (Donate)
champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
hi

i found this code snippet to use proxies in php... please can someone integrate this into the script?? so that the script again starts working for .com, .net. and most importantly .org domains

thanks

Code:
<?php function proxy_url($proxy_url) { $proxy_name = '127.0.0.1'; $proxy_port = 4001; $proxy_cont = ''; $proxy_fp = fsockopen($proxy_name, $proxy_port); if (!$proxy_fp) {return false;} fputs($proxy_fp, "GET $proxy_url HTTP/1.0\r\nHost: $proxy_name\r\n\r\n"); while(!feof($proxy_fp)) {$proxy_cont .= fread($proxy_fp,4096);} fclose($proxy_fp); $proxy_cont = substr($proxy_cont, strpos($proxy_cont,"\r\n\r\n")+4); return $proxy_cont; } ?>

i guess this should work..


Please register or log-in into NamePros to hide ads
__________________
........................
champ_rock is offline   Reply With Quote
Site Sponsors
Get Me Visits http://www.internetinvestments.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 02:27 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.