Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:23 PM.


Advertisement
Log in to turn off these ads.