PHP : Variables vs Constants

I thought, and had been told, that using constants instead of variables in PHP was mostly a matter of speed : at run time, the engine replaces every occurrence of a constant with its hard-coded value, making code presumably faster than using variables that must be evaluated each time they are encountered. Or something like this. Wondering how big or…

Heh, funny. I made a feature request for Filezilla (an FTP client) on 2003-11-29 at 13:26, and I've had a mail today telling that it's finally been implemented in latest release (2.2.24) I guess you never wait too much :)

#

PHP5 Benchmarks: for vs while, count vs sizeof, md5 vs sha1 and other speed comparisons like these for those who really need an extra millisecond of optimisation. I like this.

#

Plugin Debugging : Hooks and Filters Flow

Basically, a plugin for WordPress creates a PHP function (called a filter or an action) which is triggered when a particular event (called a hook) occurs. When several filters are supposed to be triggered by the same hook, you can define their priority. When you're writing a plugin and you're facing unexpected behavior, it may be a priority issue :…

PHP Bitwise Operators Example of Use

In my neverending amateur journey through the wonders of coding, here is something I've learnt in PHP today : how to conveniently store a set of flags into one value, with bitmask comparisons made easy thanks to PHP bitwise operators. Sounds greek to you ? Read on, it's this kind of things that are piece of cake to use while…

PAPA9: I soooooo wish I could be there. Pinball has to be the thing that gave me the greatest excitement moments in my life :) I'll trade my wife for a Robowar.

#