PHP: Multiple DNS Queries Using fopen

Whilst working on some inherited PHP code that used fopen I noticed an interesting comment [http://uk3.php.net/manual/en/function.fopen.php#73132] in the PHP manual which pointed out that fopen always makes a DNS lookup for every request. Taking the following code as an example: <…

Large Temporary Files Left Behind by ImageMagick

Recently since moving the CSS Sprite Generator [http://spritegen.website-performance.org/ ] to a new server we've had a couple of cases where the site has stopped working due to running out of disk-space. The cause was due to some epic temporary files being left behind by ImageMagick [http:…

Python or PHP?

Recently I've been having interesting discussions with Ed [http://ejeliot.com] and Cyril [http://cyril.doussin.name/thoughts/] regarding some of the differences between PHP and Python and what makes each one special. So I'm interested to know what are the things you love about PHP…

Dvorak's comment spam fix

As a regular listener to This Week In Tech [http://thisweekintech.com/] I heard on the latest show John C Dvorak's [http://www.dvorak.org/blog/] anti-spam provider Marc Perkel at ctyme.com [http://www.ctyme.com] has come up with a way to prevent comment spam on…