I’ve added advforecast2.php to my forecast page http://www.muttdog.us/wx/wx2.php. On the page, you can see that I also have the WXSim forecast working just fine but I am getting two errors on the advforecast2.php part.
1- I am getting an error of Warning: filemtime() [function.filemtime]: stat failed for forecast.txt in /virtual/users/e14991-15531/web/wx/advforecast2.php on line 119
and
2- the icons are not showing up even though they are placed in my server file at /forecast/images/ , which is where they needed to be for the WXSim forecast as well and are working for that forecast.
The Warning: filemtime() [function.filemtime]: stat failed for forecast.txt in /virtual/users/e14991-15531/web/wx/advforecast2.php on line 119 message is caused by not having a forecast.txt cache file. You can create a blank file and upload it as forecast.txt in your wx directory, then use the control panel for your web hoster and change the file permissions on forecast.txt to be 666 or 766 so the advforecast2.php script can write to it.
For the icon problem, your images are located in the /forecast/images directory (like http://www.muttdog.us/forecast/images/scttsra60.jpg ). You need to change the advforecast2.php script to have the correct relative address for the images directory. Change
ahhh, an empty file named forecast.txt. I had tried using a file named that but had put the text forecast in there…which obviously didn’t work.
I had also tried a single “.” not a double.
I will fix all that when I get home late this afternoon. Thanks for the help.
Steve