string array - strange behaviour
Posted: Sat Aug 09, 2008 3:24 am
I am creating this 'message of the day' topic. Therefore I fill in first a string array.
$motd[1+1*31]="This is January 1st";
$motd[2+1*31]="This is January 2nd";
...
$motd[31+12*31]="lalala";
Then I select the message to write out using date(). I have now the problem, that starting from 5th of August, the strings for dates after are empty (they have however an initialisation line)
What can cause this and what can avoid this?
NB: I split up the list of initialisations using an if then else on (date("m")<8) and this moved forward the point were strings were starting to be empty with 5 days or so.
Thanks for any help.
$motd[1+1*31]="This is January 1st";
$motd[2+1*31]="This is January 2nd";
...
$motd[31+12*31]="lalala";
Then I select the message to write out using date(). I have now the problem, that starting from 5th of August, the strings for dates after are empty (they have however an initialisation line)
What can cause this and what can avoid this?
NB: I split up the list of initialisations using an if then else on (date("m")<8) and this moved forward the point were strings were starting to be empty with 5 days or so.
Thanks for any help.