Not to hijack the thread, but since the discussion is about updating wxastronomy.php, I wanted to mention an issue that will impact lots of users of include-wxastronomy.php beginning in 2024.
There is a function in include-wxastronomy.php called getMoonInfo. Within this function is a list of ALL unix timestamps for New Moons, Q1 Moons, Full Moons, and Q3 Moons. In older versions of this script, the years covered by this function are 2009 through 2023. Unless you update that script before the end of 2023, your wxastronomy.php script will fail in 2024. But, there is an easy solution that will take you through 2030. If you have the cloud-base.php script v2.1 (and possible some earlier versions) on your system, simply edit that script and copy the entire getMoonInfo function starting with "function getMoonInfo" and ending with with "// ------------- end of USNO moon data -----------------------------". Then replace this same section of code in your include-wxastronomy.php with the new code. If you don't have a newer cloud-base.php script on your system, I've attached the necessary section of code here. Use it to replace your existing getMoonInfo function.
I checked 4 URLs mentioned in this thread alone to see how many of those sites had updated moon times in their include-wxastronomy.php scripts, and none of then had the updated times. That's why I thought it important enough to bring this to everyone's attention.
Steve
[ You are not allowed to view attachments ]