Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

php_value auto_prepend_file

I already have this line in my htaccess file for gzip:

AddType application/x-httpd-php .html .htm php_value auto_prepend_file /home/indigo/public_html/gzip/gzip.php

so how can I get the mint tracking to automatically be added to my pages?

Shaun Inman
Mint/Pepper Developer
Posted on May 11, '07 at 06:17 pm

Two options:

  1. You could create a new file that includes both your gzip.php and Mint’s auto.php and auto_prepend_file the new file.

  2. Or just include Mint’s auto.php in your existing gzip.php.

I combined the two files into one php file but being a php newbie I am wondering f this is right? These are the last few lines of code:

return str_replace($replace, "{$mint}r</head>", $page);
}
ob_start("Minted");
?>
<? ob_start("ob_gzhandler"); ?>

However, the minty include is still not happening?

Thanks Alex

Okay - fixed it by putting

<?php ob_start("ob_gzhandler"); ?>

at top of file instead of bottom

You must be logged in to reply. Login above or create an account