Hi all I'm familiar with using include("dir/file.php"); PHP: , but what I want to ask is this: Is there a way to include one specific inclue file on every single php page without adding the code in avery single php file? Originally, I was thinking that .htaccess might be the way to go, but no. So is this possible, or should I just get copy/pasting? THanks
It's not possible ! You need to add include or require function on every single page where you need it.
Dang it! But thank you for your reply ActiveFrost. I don't suppose that there is any other language that together with php would accomplish what I'm after?
Yes, there is a way. Whether its useful to you or not depends upon what you want to do with it. Google for "php_auto_prepend". You can either set it through PHP.ini file or a htaccess directive. EDIT: I had typed "php_auto_append" earlier in mistake. It should be "php_auto_prepend"!
http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file http://www.php.net/manual/en/configuration.changes.php