Jump to content

Headers


ari_aaron

Recommended Posts

If your server has PHP installed on it, you can use the auto_prepend_file and auto_append_file directives in .htaccess. Just put the top half (everything above the body content) in the auto_prepend_file directive, and everything below the body content in the auto_append_file directive. It'll automatically put the contents of those files at the top and bottom, respectively, of all PHP scripts.
Link to comment
https://forums.phpfreaks.com/topic/9259-headers/#findComment-34119
Share on other sites

[!--quoteo(post=372102:date=May 7 2006, 04:10 PM:name=ari_aaron)--][div class=\'quotetop\']QUOTE(ari_aaron @ May 7 2006, 04:10 PM) [snapback]372102[/snapback][/div][div class=\'quotemain\'][!--quotec--]
The HTML inludes don't work on .php files. only .shtml[/quote]
If you had mentioned that ...

Then use php includes: example

[code]
<html>
<head>
<title>Home</title>
</head>
<?php include("header.html"); ?>
<!---page content>
<?php include("footer.html"); ?>
</html>[/code]
Link to comment
https://forums.phpfreaks.com/topic/9259-headers/#findComment-34133
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.