Hi!
When i use fopen (or fsockopen for that matter) to get to:
$url = "http://www.yahoo.com/index.html";
there is no response from the fopen request
However if I go to:
$url = "http://www.mit.edu:8001/people/rei/MANGA/BJ.html";
then it is ok.
Both urls are ok if i run the script from a my local machine (http://localhost) no matter if i am running it from PWS or Apache (fow windows).
However, as soon as i put it onto my linux server (Apache1.3.12 + php4.06) it doesn't work (the yahoo one - the other works!).
Please Help.
Code:
$url = (see above)
if (!$fp = @fopen($url, "r")) {
$page = fgets($fp, 4096);
fclose($fp);
}
echo($page);
Colin