Jump to content

how to remove proxy


tom.leconye

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.