After a lot of fiddling around, I finally settled on changing to a php include, commenting out the iframe:
<!--<iframe src="http://rogerscityweather.com/buoy/buoy-data.php?show=normal" width="660" height="750"></iframe>-->
<?php include("http://rogerscityweather.com/buoy/buoy-data.php");?>
Although it finds the
buoy-data.php inside the /buoy sub-directory, it was missing the arrows.
I fiddled with this, trying to get it to recognize the /buoy/arrows directory:
$windArrowDir = './arrows/'; // set to directory with wind arrows, or
// set to '' if wind arrows are not wanted
// the program will test to see if images are
// available, and set it to '' if no images are
// found in the directory specified.
// // used for rotating legend display :
to no avail. There must be some reason it is trying to go to the root html directory instead of looking in the /buoy subdirectory, but I am going to stop fighting it for now. I copied my arrows directory to the root and they started showing up. It seems to be working with my cobbled mess.
In a previous panic, placing the
huronbuoys2.gif file in the root directory also, where it was originally in the
/buoy sub-directory. To try to clean things up, I deleted the root copy leaving the one in /buoy. That broke the page. I recopied it back to the html root directory and it started working again. Maybe this is related to the arrows directory issue.
Even a blind squirrel finds a nut every once in a while...
Greg H.