I have written several php scripts to perform "Gregorian to Julian" & "Julian to Gregorian" date calculations which are working, dare I say it, "perfectly". However, I am having difficulty in getting my latest addition working - that is, code to calculate the number of days between any two supplied dated.
The URL for the "HTML" master page is "http://www.tip.net.au/~pmyers/General/JulianDates.htm" which contains links, at the top of it, to the 3 options available from the page. There is a downloadable ZIP file accessible from the bottom of the HTML page which contains the source code to all the php, etc, code I have developed for this "project". The "engine" for the code is Algorithm #199 from the "Collected Algorithms of the CACM".
When the 3rd option ("Days Between Any Two Given Dates"), is executed I keep getting the following error - "Parse error: parse error in /home/pcug/pmyers/WWW/General/DaysBetween2Dates.php on line 64". Only the line number has changed when I have changed the "<?" to "<?php" or "<?php3" or "<?php4".
Any assistance which anyone might be able to provide in order to get the 3rd option to work would be much appreciated.
NOTE: The PC Users Group (ACT) Inc website, here in Australia, has only implemented the "basic" php system which does not include the calendar functions, database functions, etc. This, however, works in fine with my purpose of teaching myself "to crawl" using PHP before I start to walk.
Thank you in advance for your assistance.