#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    UK
    Posts
    27
    Rep Power
    0
    I understand server side includes... however, I would like to automatically insert a piece of code at the start of any web page that is requested.

    Instead of using an include on every page, is it possible to automate this using some kind of Apache directive?

    Thanks,
    Ben.
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Start here -> http://www.perl.com/CPAN-local/modul...module/Apache/

    i.e. Apache-Sandwich-2.04.tar.gz
  4. #3
  5. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    61
    It is easy to do this with PHP, setting the 'auto_prepend_file' and 'auto_append_file' directives in php.ini.

IMN logo majestic logo threadwatch logo seochat tools logo