tom.leconye Posted September 29, 2009 Share Posted September 29, 2009 Hi, I have a PHP file that use an external proxy, I want to remove this proxy from these codes to use only my server internet instead of proxy, i use 127.0.0.1 port 80 but don't work properly, How i can remove it? has any idea? <?php /*your proxy server address*/ $proxy = "80.247.****.****"; /*your proxy server port*/ $port = "80"; /*the url you want to connect to*/ $url = "http://www.*****.ir"; $fp = fsockopen($proxy, $port) or die("Unable to open"); fputs($fp, "GET $url HTTP/1.1\r\nHost: $proxy\r\n\r\n"); while(!feof($fp)){ $line = fgets($fp, 4000); print($line); } fclose($fp); ?> Link to comment https://forums.phpfreaks.com/topic/175913-how-to-remove-proxy/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.