Archive for the ‘php’ Category

The Quickest Way To Tweet via Zend Framework’s Twitter Service

This is a quick and dirty method.  It assumes a couple of things. You’ve already created your ‘app’ on twitter. You’ve already gotten your personal OAuth tokens from twitter. First you need to setup your tokens; $token = new Zend_Oauth_Token_Access(); $token->setToken(“YOUR_PERSONAL_TOKEN”)       ->setTokenSecret(“YOUR_PERSONAL_SECRET”); Second, you need to setup the Zend_Service_Twitter using your access token as [...]

Typecasting with double-not (!!) vs. (bool)

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 [...]

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 [...]

Subscribe to RSS Feed Follow me on Twitter!