note 598 deleted from function.include by sniper
| From: | sniper@php.net | Date: | Wed, 29 Jan 2003 03:39:25 +0000 |
| Subject: | note 598 deleted from function.include by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-42961@lists.php.net to get a copy of this message | ||
The path for the include command is set by the include_path setting in the php.ini file, which
defaults to the current directory.
For a site-wide include that doesn't require settings in php.ini, consider using something
like:
require($DOCUMENT_ROOT . "/header.html");
For security reasons, though, be careful about including PHP code this way... it's better to
keep it outside the document root directory, where it is only accessible by file sytem commands.