I'm super happy that I got Apache, PHP, MySQL, and phpMyAdmin working wonderfully on Suse 10. I'm facing a challenge however that I could use some advise on.

I'm loading an xml file into my php script. It works great when going through my hosting company (based on linux). Here is what a shortenned portion of it looks like:

PHP Code:


$weatherfile "http://xml.weather.yahoo.com/forecastrss?p=$location&u=$units";
if (!(
$fp = @fopen($weatherfile"r"))) { //Remove the "@" to see error messages.
$theResponse "I can't seem to connect to the weather source right now. Is the internet on?";

    } else {
$theResponse "The file loaded just great.";
When I run this script on my personal machine, I get this error:

Warning: fopen(http://xml.weather.yahoo.com/forecastrss?p=80401&u=f): failed to open stream: HTTP request failed! in /home/ultrus/public_html/aiml/programE/src/plugins/cs_weather.php on line 72
RESPONSE: I can't seem to connect to the weather source right now. Is the internet on?

Is there some type of Apache or PHP security setting or firewall setting that is preventing me from loading file sources from the internet? How do I fix it? Thanks for the help.