Displaying posts tagged: php

A small fix to syntax highlighting of PHP comments in emacs

No Comments
If you're like me, you use emacs to edit a lot of PHP, and if you're like me, you sometimes run across code like this: /* This is a comment $foo = 'this is some commented out code'; # Bla bla bla */ That's not so bad, really, but the php-mode that I had been using ...

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

1 Comment
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 ...