Tag Archives: php

Simple shorten url using bit.ly and php

Inspired by the simple tweet to twitter function by Fabian Potencier I have built a stupidly simple url shorter for bit.ly. Something you are probably going to want to do if you are sending tweets via PHP.
function shorten($url, $login, $apikey)
{
$api_url = “http://api.bit.ly/shorten?version=2.0.1&
[...]

Don’t be afraid to NOT use the ORM…

I’ve been racking my brains the past couple of days with a Doctrine issue within a Symfony project. I was constructing a bank statement-esque page, which iterated over a “StatementEntry” table and displayed the results. Entries could either be of model Type A or model Type B, with the relevant model ID stored [...]

“Why I hate Criteria”

Nicking the title from the previous post, oh and the sentiment. I don’t hate Criteria**, it is actually quite good, however watching the video in the previous post reminded me of a few issues we have had in the office where we have complained about it or just got plain confused…
I know Dan, for [...]

Dear Idiot Boy,

Do you think even I would use Javascript to secure content?! Idiot boy.
It was simple to secure and NO ONE will ever know how I have done it.
MWHAHAHA
Auntie.
————-
Erm well I’m a bit stunned. I thought it would be something at least “clever” with cookies and javascript that was “the fix” that “secured” the iPhone version [...]