View Single Post
Old 07-20-2008, 01:39 AM   PM User | #1
NowakFilip
New to the CF scene

 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
NowakFilip is an unknown quantity at this point
Display Header On Php Htaccess

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.

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

Code:
<?php
$header = "header.html";
$file = $_SERVER["PATH_TRANSLATED"];
readfile($header);
readfile($file);
?>
I need help making the header to show on the .php files, please help me.
NowakFilip is offline   Reply With Quote