Tag Archive for 'bypassing'

Method of bypassing php_value auto_append//prepend

I bring you the old tutorial on how to put a file before and after each specific page (this would allow you to put “header code” and “footer code” such as trackers, counter, etc.

Subject : Method of bypassing php_value auto_append//prepend
Written By: Tom Rochette
Date: 15 Jul 2005
Level: 2 (Beginner)
Type: SweetTrick (bypassing or workaround)

Since we aren’t allowed to do php_value because the php is complied as a CGI on our servers, I had to find a way to get it working anyway. Here is what I tought about:

in your .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^([a-z]+)$ loader.php?p=$1
</IfModule>

and in the loader.php page:

<?PHP
require_once("filebefore");
require_once($_REQUEST["p"]);
require_once("fileafter");
?>

I had to find something like this to use IloveJackDaniels caching method . I hope it help some of you programmers.

This article has been written by Tom Rochette
http://www.ewealthdev.com/







Techno-Science Feed
ePersonal Development Feed
Humour and LifeStyle Feed