I'm writting a small script to redirect to some locations as the code below:
$url = "http://www.hotmail.com/";
if($link = @fopen($url, "r"))
{
fclose($link);
header("Location: ".$url);
}
With the fopen() some urls are work some cannot (All urls I have tried are correct).
Doese any one know how to fix this problem?
Thanks.