Displaying posts tagged: php

PHP, easy as APC

No Comments
I moved my web services from Mediatemple to a box in a rack somewhere in Atlanta. I'm leasing the 1U from Chris Kelly, who is leasing several other Us, as well as power and bandwidth. My nerdier friends demand to know the specs (I ordered the box in parts from Newegg with "reasonable" as my only ...

The whole point of loose typing

No Comments
I don't know John Lim, but he linked to a Livejournal post where someone complained about their expectations being dashed when trying various comparisons. % php equality.php a == b b != c a == c a == d b != d c != d They proceed to be pretty confused by what could be perceived ...

Detecting Cycles in Tree Structures with PHP

No Comments
My Gallery recently had some serious database issues. I had to write some code outside of the Gallery proper to look for database errors. When I went to look for cycles in the tree, I didn't find any handy algorithms out in the wild of the internet, so I wrote something. That produces this output: Found ...