Custom Search



TIDE PREDICTIONS FOR GEELONG

/","",$Line); ## $Line = preg_replace("//","",$Line); ## $Line = preg_replace("/\/","",$Line); ## $Line = preg_replace("/\/","",$Line); ## $Line = preg_replace("/\/","",$Line); ## $Line = preg_replace("/\
/","",$Line); ## $Line = preg_replace("/\/weather\/icons\//","http://www.geelongweather.com/forecast/icons/",$Line); ## $Line = preg_replace("/Nominal Capacity/","Nominal Capacity
",$Line); ## print("\$FoundStart=$FoundStart, \$FoundEnd=$FoundEnd
"); ## # print($Line); ## $Line = preg_replace("//","",$Line); ## $Line = preg_replace("/height=\"40\"/","",$Line); ## $Line = preg_replace("/\\\<\/td\>/","",$Line); ## $Line = preg_replace("/class=\"regstown4dayincforecastday\"/","bgcolor=\"#DDDDDD\"",$Line); function DisplayForecast() { $ForecastFile="tides.txt"; if (is_readable($ForecastFile)) { $ForecastFileContent = file($ForecastFile); } else { print("Unable to screen scrape the source file, does it exist?"); exit; } $FoundStart = 0; $FoundEnd = "0"; foreach ($ForecastFileContent as $Line) { if ($FoundEnd == 0) { if ($FoundStart == 1 && preg_match("/<\/table>/",$Line)) { $FoundEnd = 1; } if (preg_match("/summary=\"\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">/",$Line)) { $FoundStart=1; print("

"); } if ($FoundStart == 1) { $Line = preg_replace("/img src=\"\//","img src=\"http://www.bom.gov.au/",$Line); print($Line); } } } } print DisplayForecast(); ?> Further information on tides for Victoria

The tide heights (Ht) are in metres above Chart Datum, red for low water and blue for high water.
Times stated are Australian Eastern Standard Time (24 hour clock). During Daylight Saving Time (when in force) one hour needs to be added to the times stated.