ページの最初と最後に自動インクルード
| include_path |
インクルードディレクトリのパスを指定します。
|
| auto_prepend_file |
ページの最初にインクルードされるファイルを指定します。
|
| auto_append_file |
ページの最後にインクルードされるファイルを指定します。
|
ウェブサーバーの場合
パス・セパレータ(PATH_SEPARATOR)は ":" を使用します。
# PHP5.
php_value include_path '.:/home/xxx/php-inc'
php_value auto_prepend_file 'prepend.inc'
php_value auto_append_file 'append.inc'
# PHP4.
php_value include_path '.:/home/xxx/php-inc'
php_value auto_prepend_file 'prepend.inc'
php_value auto_append_file 'append.inc'
PHP5 のみを記述する場合は <IfModule> タグを省略する事ができます。
php_value include_path '.:/home/xxx/php-inc'
php_value auto_prepend_file 'prepend.inc'
php_value auto_append_file 'append.inc'
ローカルサーバーの場合
パス・セパレータは ";" を使用します。
# PHP5.
php_value include_path '.;D:/home/xxx/php-inc'
php_value auto_prepend_file 'prepend.inc'
php_value auto_append_file 'append.inc'
# PHP4.
php_value include_path '.;D:/home/xxx/php-inc'
php_value auto_prepend_file 'prepend.inc'
php_value auto_append_file 'append.inc'