Why do witches burn?

Because they’re made of wood, like bridges, and so float on water, like churches, very small rocks, gravy, and a duck.

This is french section. Go to English version

Archive for the 'My useful scripts' Category

Url rewriting is your friend

Le vendredi, novembre 28th, 2008

Url rewriting, is to have a link to a webpage that a human can read, and a search engine can interpret as keywords. Many blogs use this, they use the title of the post in the url. Example : Good: http://toto.com/articles/eat-creme-brulee.html Bad: http://toto.com/2007/article.php?id=684 You english reader may not care about this, but the main problem […]

Read the rest of this entry »

Even in PHP 5, this old security params is activated by default, and I hate it. It’s Magic Quote. When this flag is On, then vars in cookies, from a form or a url, are automatically « escaped ». It means that backslashes are added before some special characters. Primary: the simple quote. Example : my script […]

Read the rest of this entry »

The 1468456th PHP class that overloads mysql

Le vendredi, août 15th, 2008

My first code is totally uninteresting for real developers, but I will use this class often in my next scripts, so you need to know a little about this class. Plus, it’s certainly a rip-off of PHP 5 mysql class, but well, I still use 4. It still can do a few good things. Good […]

Read the rest of this entry »