note 35932 added to function.jdmonthname
| From: | os at kinikena dot com | Date: | Fri, 19 Sep 2003 14:57:43 +0000 |
| Subject: | note 35932 added to function.jdmonthname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56769@lists.php.net to get a copy of this message | ||
I tried using the method suggested by 'g8z at yahoo dot com' and ran into a strange
problem.
A page that produces a daily report is loaded would then save an html file titled
'/report/$year/$month/$monthName-$day-$year.html'.
The month name was produced by
$monthName = jdmonthname (juliantojd($month, $day, $year, 0 );
The file was always saved in the proper directory of 'report/$year/$month/' but around the
18th of every month the $monthName would suddenly change to the next month.
For example,
September 16, 2002 would produce file "report/2002/9/Sep-16-2002.html"
September 17, 2002 would produce file "report/2002/9/Sep-17-2002.html"
Then,
September 18, 2003 would produce file "report/2002/9/Oct-18-2002.html"
And so on for the duration of the month.
October 1, 2003 would go back to normal producing "report/2002/10/Oct-1-2002.html"
...
Until the 18th which would name the relevant file Nov-18-2002.html
----
Manual Page -- http://www.php.net/manual/en/function.jdmonthname.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35932
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35932&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35932&report=yes