CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Display Header On Php Htaccess (http://www.codingforums.com/showthread.php?t=144691)

NowakFilip 07-20-2008 01:39 AM

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.


All times are GMT +1. The time now is 10:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.