$month = date("n");$day = date("j");$year = date("Y");$next = (date("j")+1);$next1 = $next+1;$next2 = $next1+1;$next3 = $next2+1;$tide1 = "$month/$day/$year";$tide2 = "$month/$next/$year";$tide3 = "$month/$next1/$year";$tide4 = "$month/$next2/$year";$tide5 = "$month/$next3/$year";//$url = 'http://www.co-ops.nos.noaa.gov/tides/seFB.html';$url = 'http://co-ops.nos.noaa.gov/tides/get_pred.shtml?stn=0030+Fernandina+Beach&secstn=Simpson+Creek,+A1A+highway+bridge&thh=+0&thm=05&tlh=+0&tlm=19&hh=*0.84&hl=*0.65';$lines_array = file($url);$lines_string = implode('', $lines_array);eregi("$tide1(.*)$tide5", $lines_string, $head);//eregi("(.*)", $lines_string, $head);//eregi("
(.*)
", $lines_string, $head);//$head = eregi_replace("$tide5", "", $head);echo "I'm running some tests now on the tides program I'm writing. Please use these with discretion. Thanks. DATA from NOAA";echo "
Simpson Creek, A1A highway bridge 2002 Water Level Predictions";echo "
(Reference station - Fernandina Beach)";echo "
Corrections - Time Diff. (High 0 hr. 05 min. Low 0 hr. 19 min.)";echo "
Hgt. Diff. (High *0.84 Low *0.65)";echo "
All times listed are in Local Time, and all heights are in Feet referenced to Mean Lower Low Water (MLLW).";echo "

";echo "
DateTimeHt.     TimeHt.     TimeHt.     TimeHt.
";echo "";echo $head[0];echo "
";