Blog

Random thoughts, solutions to niggling programming problems, what ever is on my mind!

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:

Last updated on 19 March 2010 at 09:48

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:

Last updated on 19 March 2010 at 09:57

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.

Last updated on 19 March 2010 at 10:03

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.

Last updated on 19 March 2010 at 10:15

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.

Last updated on 19 March 2010 at 10:04

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:

Last updated on 19 March 2010 at 10:04

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.

Last updated on 19 March 2010 at 10:05

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!

Last updated on 18 March 2010 at 16:23

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.

Last updated on 19 March 2010 at 10:05

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.

Last updated on 24 March 2010 at 23:05

My name is Jurgens du Toit. I love web development and anything internet related. This is my home site and playground.

Follow me on Twitter. Now.   Find me on Facebook.
myScoop