You could include it in the auto_prepend_file variable in your php.ini.
This will make this file available to every page.. You could include it in
your .htaccess file, if you do not have access to the php.ini

Something like this in your .htaccess file:

php_value auto_prepend_file /path_to_file_from_root/myFunctions.php

Cheers!

Rick

You will never be happy if you continue to search for what happiness
consists of. You will never live if you are looking for the meaning of life.
- Albert Camus

> From: "Darren Gates" <[EMAIL PROTECTED]>
> Reply-To: "Darren Gates" <[EMAIL PROTECTED]>
> Date: Fri, 24 May 2002 15:54:28 -0700
> To: [EMAIL PROTECTED]
> Subject: [PHP] including functions on every php page in a site
> 
> 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
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to