$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("
Date | Time | Ht. | Time | Ht. | Time | Ht. | Time | Ht. | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
";echo "";echo $head[0];echo " |