|
open file in PHP with proxy
hyy guys recently i try to open a file in PHP with the script from manual :
<?php
function proxy_url($proxy_url)
{
$proxy_name = '202.43.253.3';
$proxy_port = 8080;
$proxy_cont = '';
$proxy_fp = fsockopen($proxy_name, $proxy_port);
if (!$proxy_fp) {return false;}
fputs($proxy_fp, "GET $proxy_url HTTP/1.0\r\n");
while(!feof($proxy_fp))
{$proxy_cont .= fgets($proxy_fp,4096);}
fclose($proxy_fp);
}
?>
but why this script always failed and shows this alert "time out 30 seconds"
is there someone who can help me???? pleaseee????
thanx so much
|