Re: include() in php 4.0.2
| From: | Eric Cestari | Date: | Mon, 04 Sep 2000 19:16:35 +0000 |
| Subject: | Re: include() in php 4.0.2 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15159@lists.php.net to get a copy of this message | ||
scottrus@ipass.net wrote:
> In your php.ini modify the include_path line to be:
>
> include_path = "/home/httpd/html/include:."
>
> Place all php files you want to include in other scripts into
> this one directory. Use an .htaccess file to protect the files
> from being called directly by the user.
>
> Use include("file.inc") or include_once("file.inc") to include
> needed files. php will check the include_path and include the
> first instance of "file.inc" it fines.
Thanx for the tip, but can't I use subdirs in this include directory ?
Thats quite a limit to being organized ....
cstar