Apache
Alternate Automatic Include File
Friday, September 11th, 2009
A week ago I wrote a post on how to easily, and automatically include files on your website using the Apache module php.modc. Unfortunately, not all we3b hosting providers have this module switched on, and don’t allow you to change this. Luckily there is a workaround involving the RewriteEngine. The idea is simple: redirect all [...]
Automatically Include Files with PHP & Apache
Wednesday, September 2nd, 2009
Need to include a files in all of your site’s pages? Normally, you’d use require() or include(). But do you really want to manually past the include code in every page? There’s the little known PHP directive auto_prepend_file and auto_append_file. What are PHP directives? They’re essential global PHP settings that are defined in you php.ini [...]