WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: anchorageweather on November 07, 2007, 02:05:30 PM

Title: PHP for Solstices and Equinoxes
Post by: anchorageweather on November 07, 2007, 02:05:30 PM
I fear that this is question is slightly off topic; however, perhaps I can beg some indulgence.  I currently have some php scripting on my site:

http://www.eetee.us/station/station.php

that shows the moon phase and an image as well.  I would also like to add additional info about Solstices and Equinoxes - something like:

"86.35 days until the Spring Equinox", etc.

Does anyone know a place where this type of php script can be found?  I've come up empty?!?  Thanks for any help.
Title: Re: PHP for Solstices and Equinoxes
Post by: aadamson on November 07, 2007, 03:39:05 PM
Borrow some javascript or translate it to php here... http://stellafane.org/misc/equinox.html

I just googled for "solestic equinox calculate" and found the above as the top link, if you view the source, the javascript is in the html.

Alan
Title: Re: PHP for Solstices and Equinoxes
Post by: anchorageweather on November 07, 2007, 08:52:32 PM
Borrow some javascript or translate it to php here... http://stellafane.org/misc/equinox.html

I just googled for "solestic equinox calculate" and found the above as the top link, if you view the source, the javascript is in the html.

Alan

Yes, I found that one too; however, its quite a bit out of my league.  :oops:
Title: Re: PHP for Solstices and Equinoxes
Post by: saratogaWX on November 07, 2007, 09:57:04 PM
I'll give it a whack at PHP conversion.. I'm fairly JavaScript/PHP bilingual  :grin:
Title: Re: PHP for Solstices and Equinoxes
Post by: anchorageweather on November 08, 2007, 06:22:40 AM
I'll give it a whack at PHP conversion.. I'm fairly JavaScript/PHP bilingual  :grin:

Ken - you 'da man!!!!    :grin: :shock: \:D/ =D>
Title: Re: PHP for Solstices and Equinoxes
Post by: anchorageweather on January 13, 2008, 12:29:36 AM
I'll give it a whack at PHP conversion.. I'm fairly JavaScript/PHP bilingual  :grin:

I was able to obtain this script and add it to my site.  Thanks for all who tried to help  =D>