Can someone please suggest the format for prepending multiple php files using the auto prepend option within the php.ini file? Is this possible?

Thanks,

Andrew

    Hi

    In your .htaccess file, add :

    php_value auto_prepend_file /path/prepend.php
    php_value auto_append_file /path/append.php

    And if you have multiple files, simply
    include() them in a single "master" php file,

    i.e. in prepend.php :

    <?PHP

    include ("file1.php");
    include ("file2.php");
    include ("file3.php");
    
    if (this or that is true)
    {
    	include ("file4.php");
    }

    ?>

    Hervé.

      Write a Reply...