Results 1 to 3 of 3

Thread: Howto: Add content to every html/htm file served?

  1. #1
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367

    Howto: Add content to every html/htm file served?

    Hi to all techies out there

    I am looking for a way to add lines/content to any html/html file served from a given domain.

    In detail: i want to add php code to every html/htm file served which includes another file.

    I do not want to manually/scriptically add those lines but rather have a server side solution for doing so.

    Content can be added either before or after the original file content.

    Hosting is with NatNet if that helps

    Thanks

    DEV.....
    :-D


  2. #2
    Am I Bitter?...Absolutely nicedreams's Avatar
    Join Date
    Apr 2004
    Location
    Washington DC Metro
    Posts
    572
    In a .htaccess file in the root of the domain:

    PHP Code:
    php_value auto_prepend_file /web/sites/user/scripts/start.php
    php_value auto_append_file 
    /web/sites/user/scripts/end.php 
    First one will fire the php script at the beginning, or the 2nd one will do it at the end. You could use either or, or both.

    Jimmy

    Gay Amateur Paysites / Solo Twink Paysite
    Nice Dreams Cash
    http://www.nicedreamscash.com


  3. #3
    Life is a dick and when itīs get hard---just fuck it... DEVELISH's Avatar
    Join Date
    Jul 2005
    Posts
    2,367
    thank you, works like a charm *hugs*
    :-D


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •