Hi Jerry,
Thanks for providing this script.
I am having a problem running in 'stand-alone' mode when the script is called, it will not load the radar site specified in the $radarLoc = parameter. It defaults to Birmingham. Modifying other parameters such as $autoRefreshOff will change the mode.
I've set the php parameter, 'allow_url_fopen' to 'on'.
Any suggestions would be appreciated.
Unfortunately you've entered somewhat untested waters. Although a URL would have been helpful I can see your 'wxusradars-hanis3.php', but due to a bug in my code-order I can't view the source. (My bad!)
The version 3 you're using had been replaced by version 3b, which still contained a self-downloader bug due to code placement/order. Version 3c dated today is
now up on my site with a
new stand-alone version as well. (You don't need to rename 'wxusradars-hanis3.php' to 'wxusradars-hanis3-SA.php' in order for the stand-alone capability to function. I've done so for demonstration purposes.)
Only the main script needed modification and not the supporting '
includes' and '
iframe' scripts.
While you can set the 'fallover defaults' in the two support scripts to your local radar, the
only '$radarLoc' that needs to point to your local radar is the one in the main script, 'wxusradars-hanis3.php'. If you set '$radarLoc' to your local radar
only in a supporting script and
not the main script you will not see your desired local radar. All of the defaults in the supporting scripts exist solely to allow debugging and they are not used when these scripts are called by 'wxusradars-hanis3.php'.
I hope this helps, but if not post a link to your 'wxusradars-hanis3.php' so I can look at the code.