Code to return MoonRise/MoonSet

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gtk
Forum Newbie
Posts: 3
Joined: Tue Jul 11, 2006 11:49 am

Code to return MoonRise/MoonSet

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

gtk
Forum Newbie
Posts: 3
Joined: Tue Jul 11, 2006 11:49 am

Post 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.
gtk
Forum Newbie
Posts: 3
Joined: Tue Jul 11, 2006 11:49 am

Post 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
Post Reply