Archives
-
Twitorfit
My latest project went live on Monday this week. It’s another Twitter-based toy along the same lines as hotornot but it uses your Twitter account and profile picture. Since launch it’s proved very successful and has spread quickly due to its viral nature. The site is called Twitorfit and was the brainchild of a Twitter-based [...]
-
Sessionless Sessions
Ok, so the title is a little misleading, but hopefully only until I explain what I mean. The first session refers to PHP sessions, and the second refers to the concept of sessions. Maybe it needs a little more explanation than that. Do what? There aren’t many PHP applications (or indeed web applications) out there [...]
Jul 26th, 2008 | Filed under Misc -
PHP Models
I wanted an object-oriented way of accessing a database that strikes a good balance between abstracting the details of SQL escaping, insert or update, etc and going too far to the point where the benefits are drowned out by the abstraction. In this article I present the system I am currently using. It does most [...]
Jun 8th, 2008 | Filed under MiscTags: activerecord, PHP -
Where are these backslashes coming from?
Are you seeing backslashes (\) being inserted before quotes in the data you’re using? Have you “solved” the problem using stripslashes? Do you want to know where these are coming from and how to stop it? Of course you do… read on!
Jun 8th, 2008 | Filed under MiscTags: PHP -
Validating domains and email addresses
This is a very common situation. You’re taking input from the user, including their email address. You want to make sure that they’re not feeding you a load of crap, so you want to validate their email address. The best way to do this is with a regular expression, but it’s not a simple task. Cal Henderson (of [...]
Jun 8th, 2008 | Filed under MiscTags: PHP -
Sessionless Sessions
A little while ago I mentioned in a post on the PHP-General mailing list that I’d implemented a way to persist data between page requests without requiring server-side storage. This raised a number of questions which I answered without giving too much away. A few weeks later Jochem Maas asked for a more detailed explanation. [...]
Mar 11th, 2008 | Filed under Misc
Recent comments