Archive for February, 2009

Class Loader

Monday, February 16th, 2009

I needed a class loader for my little framework as I dont want to include all the files in on every request which is what listing them in a long list of includes will do. So I checked out the PHP.net site which has this code sample. I used it ...

Mod_rewrite

Monday, February 16th, 2009

I wanted to start a small MVC framework to help build my next project. I needed to get mod_rewrite working and also build a simple class loader. For mod_rewrite I setup the following .htaccess file (xp.htaccess to get around Windows' filename issue) RewriteEngine on RewriteCond %{REQUEST_URI} !\.(php|css|js|gif|png|jpe?g)$ RewriteRule (.*)$ /index.php [L] Then in my dispatcher ...

Zend Framework

Wednesday, February 11th, 2009

Anthony suggested that I try out the Zend Framework. It's a pretty simple installation but I had a hard time findinga decent tutorial. The simple starter on the Zend site is set up to use SQL Lite and I just did not feel like installing and learning that at the ...

Apache Virtual Host on Windows XP

Tuesday, February 3rd, 2009

I wanted to set up some virtual hosts in my local environment. I found this very helpful page. Here is the lesson in a nutshell. Assuming Apache 2.2 is installed in the default location open the following file: C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf Find the lines that read: # Virtual hosts #Include conf/extra/httpd-vhosts.conf and remove the comment ...