including functions on every php page in a site
| From: | Darren Gates | Date: | Fri, 24 May 2002 22:54:28 +0000 |
| Subject: | including functions on every php page in a site | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99175@lists.php.net to get a copy of this message | ||
Hello,
I have about 10 function definitions that I want included on every page in
my website. Instead of calling:
<? include( "myFunctions.php"); ?>
on every page, I'd prefer to have the functions automatically loaded into
memory when a user visits any page of my site. I was thinking that there may
be some what to do this with a root-level .htaccess file, but I'm not sure.
Can anyone offer a solution?
Thanks,
Darren