Archive for the 'Code Snippets' Category

PREG_REPLACE_EVAL

Monday, June 30th, 2008

This afternoon, while trying to come up with a solution for a problem on a client’s site, I had one of those “AHA!” moments. I’ve been working with PCRE (Perl Compatible Regular Expressions) just about as long as I have been using PHP, but I never really looked into the docs until today. [...]

Bad Information

Monday, June 23rd, 2008

I get really frustrated when I see bad information given out.  On any topic, it doesn’t really matter, if I know its false, I hate to hear it get perpetuated.  Today has been no different, except it has really torqued me because the subject is information security.
I read in another blog that the best way [...]

Expect the unexpected

Monday, March 17th, 2008

I have seen many examples lately of “newbie” help posts where the code given, though technically correct, does not suit a wide range of situations. The most recent example of this I found on DZone’s PHP Zone. I read this post, and couldn’t help but have to comment on the limited view that [...]

Musings From the World of PHP