Jump to content


Photo

How do I automatically included a header?


  • Please log in to reply
3 replies to this topic

#1 dptr1988

dptr1988
  • Members
  • PipPipPip
  • Advanced Member
  • 372 posts

Posted 25 June 2006 - 10:03 PM

How can I insert HTML codes into the begining or end of each document that apache serves that has the mime type of text/html? Kind of like the way free webhosting sites insert advertisements in your page.
Need more help with your project? One of the thousands of programmers, web designers or artists at <a href="http://www.rentacode...d_6764522">Rent A Coder</a> would be happy to help.

Disclaimer: Free advice is usually worth what you paid for it. ( or at least when it's coming from me! )

#2 steelmanronald06

steelmanronald06
  • Staff Alumni
  • Advanced Member
  • 2,004 posts
  • LocationOk

Posted 26 June 2006 - 03:04 AM

go into your httpd docs, or apache config, and use auto-prepend or auto-append, top and bottom respectivly. If you don't know these two, or how they work, google them. I kinda remember, but am not for sure. Google should return good results, however.

#3 dptr1988

dptr1988
  • Members
  • PipPipPip
  • Advanced Member
  • 372 posts

Posted 26 June 2006 - 02:39 PM

Thank you. I googled "auto-prepend apache" and found my answer. It is done with PHP directives auto_prepend_file and auto_append_file. Thank you for your help, otherwise I wouldn't have know what to search for.
Need more help with your project? One of the thousands of programmers, web designers or artists at <a href="http://www.rentacode...d_6764522">Rent A Coder</a> would be happy to help.

Disclaimer: Free advice is usually worth what you paid for it. ( or at least when it's coming from me! )

#4 apacheguy

apacheguy
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 29 June 2006 - 05:16 PM

The other option, what I use, is the .shtml extension. It is server-side html. So you can put a tag on shtml pages that will insert the code that is located in the file you specify in your tag.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users