I have some question about get-USNO-sunmoon.php
Code: Select all
<!-- cGetMoonInfo returns
stdClass Object
(
[date] => 1368068229
[datetxt] => Thu, 09-May-2013 02:57 GMT
[age] => 28 days, 17 hours, 22 minutes
[ill] => 1
[pic] => 27
[phase] => Waning Crescent
[NM] => 1365586500
[NMGMT] => Wed, 10-Apr-2013 09:35 GMT
[NMWD] => 09:35 GMT 10 April 2013
[Q1] => 1366288260
[Q1GMT] => Thu, 18-Apr-2013 12:31 GMT
[Q1WD] => 12:31 GMT 18 April 2013
[FM] => 1366919820
[FMGMT] => Thu, 25-Apr-2013 19:57 GMT
[FMWD] => 19:57 GMT 25 April 2013
[Q3] => 1367493240
[Q3GMT] => Thu, 02-May-2013 11:14 GMT
[Q3WD] => 11:14 GMT 02 May 2013
[Q4] => 1368145680
[Q4GMT] => Fri, 10-May-2013 00:28 GMT
[Q4WD] => 00:28 GMT 10 May 2013
[FM2] => 1369455900
[FM2GMT] => Sat, 25-May-2013 04:25 GMT
[FM2WD] => 04:25 GMT 25 May 2013
[moons] => Array
(
[0] => Array
(
[0] => New Moon
[1] => 1368145680
[2] => NM
[3] => Thu, 09 May 2013 19:28:00 -0500
)
[1] => Array
(
[0] => First Quarter
[1] => 1368851640
[2] => Q1
[3] => Fri, 17 May 2013 23:34:00 -0500
)
[2] => Array
(
[0] => Full Moon
[1] => 1369455900
[2] => FM
[3] => Fri, 24 May 2013 23:25:00 -0500
)
[3] => Array
(
[0] => Last Quarter
[1] => 1370026680
[2] => Q3
[3] => Fri, 31 May 2013 13:58:00 -0500
)
)
)
-->
<!-- get-USNO-sunmoon.php - Version 1.02 - 03-Dec-2011 -->
<!-- loading ./cache/USNO-moondata.txt from http://aa.usno.navy.mil/cgi-bin/aa_pap.pl -->
<!-- POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil Port: 80 IP=199.211.133.93-->
<!-- Sending:
POST /cgi-bin/aa_pap.pl HTTP/1.1
Host: aa.usno.navy.mil
Connection: Close
Accept: text/plain,text/html
Accept-Encoding: gzip;q=0,compress;q=0
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Referer: http://aa.usno.navy.mil/data/docs/RS_OneDay.php
Content-Length: 125
Content-Type: application/x-www-form-urlencoded
FFX=2&ID=AA&xxy=2013&xxm=5&xxd=8&place=Springfield%2C+IL%2C+USA&xx0=-1&xx1=89&xx2=37&yy0=1&yy1=39&yy2=42&zz1=5&zz0=-1&ZZZ=END
-->
<!-- HTTP stats: dns=0.046 conn=0.042 put=0.000 get(63 blocks)=0.086 close=0.000 total=0.175 secs -->
<!-- fetch function elapsed= 0 secs. -->
<!-- loading finished. -->
<!-- USNOdata
Array
(
[beginciviltwilight] => 05:21
[beginciviltwilightdate] => 05/08/2013
[sunrise] => 05:51
[sunrisedate] => 05/08/2013
[suntransit] => 12:55
[suntransitdate] => 05/08/2013
[sunset] => 20:00
[sunsetdate] => 05/08/2013
[endciviltwilight] => 20:30
[endciviltwilightdate] => 05/08/2013
[moonsetprior] => 17:59
[moonsetpriordate] => 05/07/2013
[moonrise] => 04:59
[moonrisedate] => 05/08/2013
[moontransit] => 11:55
[moontransitdate] => 05/08/2013
[moonset] => 18:58
[moonsetdate] => 05/08/2013
[moonrisenext] => 05:34
[moonrisenextdate] => 05/09/2013
[moonphase] => Waning Crescent
[illumination] => 2%
[hoursofpossibledaylight] => 14:09
)
but if you print $moonphase i get 2
Any ideas?
Thanks Beau
http://99.148.148.51/