Posts Tagged ‘PHP’

PHP Tide Clock

Here's a quick little script for predicting tides. Be sure and change the high tide time on line 2. You may have to play around with the numbers a little to get it working on your site. Please, don't ever use this script for navigational purposes. Seriously, this is a rough estimate and not for marine navigation purposes. Tides depend on many factors, sun, moon, wind and some other things I don't understand. But I do understand tides differ by a set amount of time in most places - usually. I developed this code to work for Folly Beach, but it will work in locations with a 12:50 time difference between high tides. As a general rule, this works fairly well, but you will still need to update the tides occasionally or during time changes. Full story
Tags: ,
Copyright © 2010 dawhoo. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.