Forum Moderators: bakedjake

Message Too Old, No Replies

.htaccess automatic inserter

Code for .htaccess to automaticly add a code in page...

         

patrixs

5:24 pm on Jan 17, 2003 (gmt 0)

10+ Year Member



Hi,
I know .htaccess preaty well but is there a code that can do the following :
Automaticly add an html code to a .html, .htm, .php.. page?

Thank you.

andreasfriedrich

5:38 pm on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] patrixs.

Be sure to read Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post.

You could write a handler to do that.

If you are running mod_php then there is an easier way: Use

[url=http://www.php.net/manual/en/configuration.changes.php]php_value[/url] [url=http://www.php.net/manual/en/configuration.directives.php#ini.auto-prepend-file]auto_prepend_file[/url]¦[url=http://www.php.net/manual/en/configuration.directives.php#ini.auto-append-file]auto_append_file file[/url] file
.

Andreas