I was asked a strange question today. “What’s return !! $row; do?” And I had never really been witness to the syntax of the double-not ‘!!’ because really, to me, it’s a bit strange and contradictory for the coding styles I’m used to. So I looked it up a bit more to see if it [...]
Archive for the ‘php’ Category
Dictionary APIs are Fun.
As part of my Hangman! application on Facebook, I plan on adding word definitions. Like any good word app, it should tell you what the word means. I’m not a big fan of sending off users to other sites when I don’t have to, so I looked into some dictionary APIs. These APIs are hard [...]
ZF Tip: Don’t use ‘index’ as a module name.
I’ve been using Zend Framework for a while and when I do my own sites things always work as expected. But a couple of times in the past I’ve had the honor of working on other sites with other people that have lead me to a few ‘wtf?’ issues. The most recent one was as [...]
All I Need is REST, Vimeo, Flickr, Zend and More
Here’s my skeleton for my magical REST interface. It’s still missing a lot of method calls for Flickr and Vimeo, but the guts are there and the remaining methods will be done in priority when I need them. Right now it supports automatic caching and logging via simple options. At some point I’ll probably put [...]
PHP Java Bridge vs. Zend Platform Java Bridge
A long time ago I posted some instructions on installing PHP/Java Bridge on Ubuntu and that post is getting quite a few reads, so I figured I’d post a follow up on how it was used. Over the last year I had been using a Java Bridge from a Zend Framework application to access a [...]

