Something strange happened to this Simple PHP Blog system.
I cannot choose November as entry month (???).
Have to find out what it is.
Till that time no posts.
Solved half an hour later.
Luckily PHP programming is my daily job.
The error happened today: October 31.
No months were shown with less than 31 days.
So it had something to do with the algorithm to make the timestamp in scripts/sb_texteditor.php line 413:
If
I changed it in
And now it works.
The posts will continue.
I cannot choose November as entry month (???).
Have to find out what it is.
Till that time no posts.
Solved half an hour later.
Luckily PHP programming is my daily job.
The error happened today: October 31.
No months were shown with less than 31 days.
So it had something to do with the algorithm to make the timestamp in scripts/sb_texteditor.php line 413:
$timestamp = mktime(0, 0, 0, $i, date('d'), date('Y'));
If
date('d')
is 31, an incorrect timestamp is produced when $i
is 2,4,6,9 or 11.I changed it in
$timestamp = mktime(0, 0, 0, $i, 1, date('Y'));
And now it works.
date('d')
is anyway useless if you only want to make a month drop down (and so is date('Y')
).The posts will continue.
1 comment
( 65 views )
| permalink
| related link
How careless can one be?
In April 2006 there was an exhibition of Maarten Ploeg's work that he gave to friends. They asked me too, but I couldn't remember Maarten ever gave me one of his works.
And now, between all kind of boxes, I saw a red map with this inside.
In the catalogue of the exhibition, I saw that he gave the same computer print 'self-portrait' to Arnold Weel in 1992. I got mine in 1996 on my birthday.
I am careless, but he was too: he misspelled my initials.
Here is a photo of Maarten after he fell from his bike on the way buying champaign in honour of the birth of his brothers first child.
Photo of the opening of the exhibition "De Gaven van Maarten Ploeg" in Arti:
In April 2006 there was an exhibition of Maarten Ploeg's work that he gave to friends. They asked me too, but I couldn't remember Maarten ever gave me one of his works.
And now, between all kind of boxes, I saw a red map with this inside.
In the catalogue of the exhibition, I saw that he gave the same computer print 'self-portrait' to Arnold Weel in 1992. I got mine in 1996 on my birthday.
I am careless, but he was too: he misspelled my initials.
Here is a photo of Maarten after he fell from his bike on the way buying champaign in honour of the birth of his brothers first child.
Photo of the opening of the exhibition "De Gaven van Maarten Ploeg" in Arti:
Door staatssecretaris van Geel in het 8-uur journaal vanochtend.
Klik hier om de gezegdemix te bekijken/beluisteren.
Klik hier om de gezegdemix te bekijken/beluisteren.
With this installation you can write a text and then, from the printer outside on the 10th floor, your document swirls into the world.
How many four letter messages will be send?
I programmed this in PHP on a local Apache server for Helmut Smits.
You can try it at the exhibition 'Eastern Neighbours' in Utrecht (NL).
If you take a visit, don't miss the Belarus pavilion
My fee was a box of local liquor from the Macedonian curator...
(I still don't have it)
How many four letter messages will be send?
I programmed this in PHP on a local Apache server for Helmut Smits.
You can try it at the exhibition 'Eastern Neighbours' in Utrecht (NL).
If you take a visit, don't miss the Belarus pavilion
My fee was a box of local liquor from the Macedonian curator...
(I still don't have it)
Back Next