PHP Image Magick Drop Shadow

Want to add a simple drop shadow on any image? well here’s how to do it on the fly via PHP and Image Magick.

Here’s how to do same via PHP and Image Magick but writing the file out to a second image leaving your original alone.

these snippets are very simple, you […]

php Filter var & common regex patterns

People … quit messing about with ereg_replace / preg_replace / eregi or other things you know nothing of… use the php filter_var. DO IT. Commonly found bullshit on the interwebs :

eregi is deprecated and silly, the above WILL miss some of the weirder or longer email addresses like school/company addresses. make your life […]