Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (25 sloc) 1.272 kB
PHP2000, written in 2000, is a simple URL routing framework (if you may call a
20 line program so). It does not require anything newer than PHP4 and uses
require() calls to route requests to the appropriate handlers. The handlers
are simply PHP files.
This framework was written by Peteris Krumins ( in 2000.
His blog is at -- good coders code, great reuse.
It uses website.conf INI file to store the possible request pages in the
[pages] section.
For example, if the [pages] section looks like this:
default = page-index.php
error = page-error.php
about = page-about.php
users = page-users.php
Then requesting will require('page-about.php'),
similarly, requesting will
The 'default' handler refers to a request to
The 'error' handler gets require()d when no url matches.
To use it, rewrite all the requests to index.php.
Peteris Krumins
Jump to Line
Something went wrong with that request. Please try again.