Display Header On Php Htaccess

Discussion in 'Programming' started by Snoork, Jul 19, 2008.

  1. #1
    --------------------------------------------------

    Problem has been solved.

    Our technicians have coded the source code.


    --------------------------------------------------

    I need some help making the header to work on .php files.

    The header is working perfectly on .html files, but not on .php files.

    As you can see here is the .html file (http://suprt.snoork.net/index.html) and you can see that it shows on top "This Is My Header".

    But as you can see here in the .php file (http://suprt.snoork.net/index.php) you cannot see the "This Is My Header".

    Here is my .htaccess file.

    AddHandler headered .htm
    AddHandler headered .html
    Action headered /header/header.php
    PHP:
    Here is my header.php file.

    <?php
    $header = "header.html";
    $file = $_SERVER["PATH_TRANSLATED"];
    readfile($header);
    readfile($file);
    ?>
    Code (markup):
    I need help making the header to show on the .php files, please help me.
     
    Snoork, Jul 19, 2008 IP