nav-left cat-right
cat-right

PHP Variable Test reference

I thought I'd post a link to this PHP Variable Tests reference page. It's a great reference that's kept up to date with the current version of PHP. I use it sometimes when I'm waffling over what function to use to validate a variable. Something I've noticed lately with the newer versions of PHP is that ctype_digit no longer returns true when you give it an empty string (ie. ctype_digit('')). This...

Ten PHP Best Practices Tips that will get you a jo...

The last couple of weeks have been quite the experience for me. I was part of a big layoff at my former company, which was interesting. I've never been in that position before, and it's hard not to take it personally. I started watching the job boards, and a nice-looking full-time PHP position caught my eye, so I sent out a resume and landed an interview. Before the face-to-face portion, I chatted with the owner...

Build a CentOS LAMP server

I finally finished re-building a development CentOS LAMP server. More importantly, and the primary purpose of the whole exercise, is that I finished my guide to building a CentOS LAMP server. I am happy to now post said guide on this blog (under Articles), for everyone to read and abuse as they please! So here you go… may I present Blake's CentOS LAMP Server Guide, single-page edition, and the perhaps friendlier...

PHP 5.3 – Namespaces and Late Static Binding

Work on the Mono machine continues. For reasons as yet undisclosed, I'm rebuilding the Mono test box from scratch. I'm not expecting this to resolve the previous issues I experienced while benchmarking Mono, but it is allowing me to tie up some loose ends. More on that soon. In the meantime, I noticed a new article over at Sitepoint about the upcoming PHP 5.3 release, slated for later this year. Apparently some...

Benchmarking Mono ASP.Net vs. PHP – a slight...

We promised some numbers, but I've run into a snag that's slowed down my testing. Originally when we first started toying with the idea of pitting Mono + ASP.Net against PHP, I wrote a quick PHP script that would just make a cheap fopen call to whatever URL you wanted to test, however many times you wanted to hit it. This isn't really load-testing, it's more like a basic timer, and not a very accurate...

Reasons Why You Shouldn't Write Things Like &...

Morgan was trolling newsgroups the other day when he stumbled across a fun flamewar going on in microsoft.public.dotnet.framework.aspnet. Someone started a topic based on an old blog post entitled "Why PHP is better than ASP". If you read the ensuing thread on the newsgroup, you'll discover why I never read newsgroups. It's like sawing off the top of your head using a dremel and putting rabid Portugese...