[PHP] Apache Default File Include

2002-04-04 Thread Dan Tappin

I had seen some where the procedure to add a default file to include in all
pages served in a virtual domain under Apache.

Can anyone point me to a FAQ on this of some keywords that I should search
the Apache site for.

I want to have a PHP file with all my generic functions loaded on every page
with out need to remember to add the include.

Thanks,

Dan

P.S. Please CC me as I am on digest 



Re: [PHP] Apache Default File Include

2002-04-04 Thread Dennis Moore

go to the PHP online documentation and look in the configuration section.

auto_append_file string
Specifies the name of a file that is automatically parsed after the main
file. The file is included as if it was called with the include() function,
so include_path is used.

The special value none disables auto-appending.

Note: If the script is terminated with exit(), auto-append will not occur.


auto_prepend_file string
Specifies the name of a file that is automatically parsed before the main
file. The file is included as if it was called with the include() function,
so include_path is used.

The special value none disables auto-prepending.
- Original Message -
From: Dan Tappin [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 3:05 PM
Subject: [PHP] Apache Default File Include


 I had seen some where the procedure to add a default file to include in
all
 pages served in a virtual domain under Apache.

 Can anyone point me to a FAQ on this of some keywords that I should search
 the Apache site for.

 I want to have a PHP file with all my generic functions loaded on every
page
 with out need to remember to add the include.

 Thanks,

 Dan

 P.S. Please CC me as I am on digest



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




Re: [PHP] Apache Default File Include

2002-04-04 Thread Dan Tappin

Thanks... That is exactly what I was looking for.

Dan
 
 go to the PHP online documentation and look in the configuration section.
 
 auto_append_file string
 Specifies the name of a file that is automatically parsed after the main
 file. The file is included as if it was called with the include() function,
 so include_path is used.
 
 The special value none disables auto-appending.
 
 Note: If the script is terminated with exit(), auto-append will not occur.
 
 auto_prepend_file string
 Specifies the name of a file that is automatically parsed before the main
 file. The file is included as if it was called with the include() function,
 so include_path is used.
 
 The special value none disables auto-prepending.
 - Original Message -
 From: Dan Tappin [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Thursday, April 04, 2002 3:05 PM
 Subject: [PHP] Apache Default File Include
 
  I had seen some where the procedure to add a default file to include in
 all
  pages served in a virtual domain under Apache.
 
  Can anyone point me to a FAQ on this of some keywords that I should search
  the Apache site for.
 
  I want to have a PHP file with all my generic functions loaded on every
 page
  with out need to remember to add the include.
 
  Thanks,
 
  Dan
 
  P.S. Please CC me as I am on digest