Page 1 of 1

Code to return MoonRise/MoonSet

Posted: Tue Jul 11, 2006 12:00 pm
by gtk
Hi.

I am looking for some php code that will return the moonrise/moonset & sunrise/sunset for any particular date. I found some code that will return the moon phase.

I've googled for a couple days now, with no results. I did find the source from a "basic" program, that I could possibly convert to php, but I don't have a real good grasp on "basic".


Thx

Posted: Tue Jul 11, 2006 11:52 pm
by Benjamin

Posted: Wed Jul 12, 2006 10:34 am
by gtk
Thx.. That was too easy for the sunrise/sunset calcuations.

I couldn't find a function for the moonrise/moonset. Got any links for that ?

Thx.

Posted: Thu Aug 31, 2006 4:26 pm
by gtk
if anyone is interested, i created a php script to return :

moonrise
moonset
moonphase
sunrise
sunset

based on a date you pass it or it uses CurrentDate