Redirect All Requests To Index.php Using .htaccess
In one of my pet projects, I redirect all requests to index.php, which then decides what to do with it:
Importing a file into a Google Gears DB using PHP
I'm playing around with Google Gears, particularly the database part, just to see what it's usefull for, and if I can use it in an app I'm working on. At some point I realised that I will need to import data at some point. Here's how I did it:
backend: PHP Framework
In the past few years I've been working on a PHP framework / backend. Sometimes out of frustration with copying and pasting code, but usually because I'm to lazy to write a lot of code, so decide to write a little bit of code to do a lot... And then I write some more code, to do a little bit more, and before you know it, it's yet another PHP framework. I tried to get some public input on the project once before, but that went nowhere, and I left it there - until of course I had to do some work that required the same type of thing, and now I'm at it again.
Parse Http Accept Header
I want to generate CSS on the fly for a personal project. I'm doing this by redirect all requests for files that does not exist to index.php, and then, if the request is for a stylesheet, index.php generates it.
Firefox requests a page twice?
I'm busy creating a site for a client who wants to know when certain internal links get clicked. Not a problem, I just insert a record into a table every time the links they want to know about get accesesd. Only problem is, when I check the table, I notice that every page impression gets logged twice.
My take on single or multiple returns
Originally posted on StackOverflow
I force myself to use only one return statement, as it will in a sense generate code smell. Let me explain:
Backend 100 Revisions
I've been working on backend, a PHP framework the last couple of months, and it's really starting to take shape. I've learned a lot about what one can do by coding smarter and the advantages open source code gives on.
Update On Backend
Bakend: PHP framework, as it's now called, now has it's own website! Check it out at http://backend-php.net.
Follow backend on Twitter at @backend_php!
SQLite Viewer
I'm playing around with Google Gears, doing data imports, and generally playing around. I'm quite visiually oriented, so I need to SEE that the data has been added to a table. For my conventional PHP / MySQL apps, I usually use phpMyAdmin or the MySQL query browser, but for Gears developmen, which uses SQLite, I needed to use something else.
New look!
At long last I've been able to find the time to port my website from drupal to backend. Backend is a PHP framework I wrote myself and open sourced to get it out there.
I've also redesigned the site, made it simpler and hopefully more usable. I'll be adding more information as I go along.


