I am working on a series of pages that pull specific information off of other external sites. I have the following line:
$observation[$i] = file("http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=$icao[$i]");
This line connects to the NOAA weather page to load the observation for each station. It works good and I have had no problems with it. I also have the following line:
$airportinfo[$i] = file_get_contents("http://www8.landings.com/cgi-bin/nph-search_apt?airport=$icao[$i]");
This line connects to Landings.com to retrieve the airport information for runways and elevations. However, when I load that page, I get the following error:
Warning: file(http://www8.landings.com/cgi-bin/nph-search_apt?airport=RJTY): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in /home/nethub/public_html/work/airportinfo.php on line 32
I have even tried using the file() to load the page and the same error. Anyone have any ideas why one page will retrieve and the other won't? Thanks in advace!