note 18656 deleted from function.fopen by tularis
| From: | tularis@php.net | Date: | Mon, 26 Dec 2005 14:24:58 +0000 |
| Subject: | note 18656 deleted from function.fopen by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100737@lists.php.net to get a copy of this message | ||
Note Submitter: mp3godNOSPAM at mail dot ru
----
previous notes about using fopen via proxy didn't work for me. so i've written some code,
i hope it'll be useful for someone
function fget_proxy($url)
{
$PROXY_URL="proxy.yourisp.org";
$PROXY_PORT=8080;
putenv("http_proxy=$PROXY_URL:$PROXY_PORT");
$result = shell_exec("wget -q -O - $url");
return $result;
}