PHP code repository
The beginnings of a repository of useful PHP code. Entries to date:
- Dynamic age display
Tricks needed to output your age dynamically, either precisely or in human form. - Path case fix
Install this code into your 404 handler to correct requests with incorrect case; performs a case-insensitive look-up of the request URI against the site structure and redirects to the fixed path.