Geoff <ge...@sh...> writes:
> It always tells me that data isn't available, no matter what station
> I select (using the test.php file)...and if I look at the phpWeather
> homepage (http://phpweather.sourceforge.net/index.php) , it does the
> same thing.....is there a problem with the METAR files?
No, not at my own site http://gimpster.com/. The SourceForge site
doesn't work because of the firewall at SF: one cannot connect to the
outside world from within SF.
Try making a PHP file with just
<?php
include('http://cnn.com/');
?>
and see if the page loads with the text from CNN (the images will
probably not work because all the relative paths will point to your
server). If it doens't work, then the so-called fopen wrappers
isn't engaged in your installation of PHP.
You can try with the alternative fsockopen() function call in
PhpWeather. Just set the fetch_method property to 'fsockopen' in the
Configuration builder. This should take care of things if the file()
function is blocked but fsockopen() isn't.
--
Martin Geisler My GnuPG Key: 0xF7F6B57B
See http://gimpster.com/ and http://phpweather.net/ for:
PHP Weather: Shows the current weather on your webpage and
PHP Shell: A telnet-connection (almost :-) in a PHP page.
|