Automatically include global file ...
| From: | Wouter van Vliet | Date: | Tue, 03 Jun 2003 16:41:59 +0000 |
| Subject: | Automatically include global file ... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150004@lists.php.net to get a copy of this message | ||
Hi folks,
I've heard something about the possibility to set an option somewhere that
will include a file to each php file requested... but I can't find it..
What I'm trying to do is something similar to things done with mod_perl ..
loading a file which sets things the lib dir and stuff... Set some constants
for ie. database connection (username, password) and of course the full path
dir... And I don't want to use an include() on top of every page, cuz this
gets the entire reason away; not having to use fullpath anywhere..
I hope you, or at least one of you, understands my chaotic message and maybe
even has an answer..
Greetz,
Wouter
____________________________________________________________________________
_____
esctoday.com | your daily eurovision centre
Wouter van Vliet, Staff assistant, member technical staff
E-mail: wouter@esctoday.com
Websites: www.esctoday.com, webzee.mine.nu
MSN Messenger passport: wouter@esctoday.com
Phone +31-(0)6-1539 7471
Based in The Hague, The Netherlands