Re: [PHP4BETA] re:Include path and phplib

From: Date: Tue, 15 Feb 2000 22:01:41 +0000
Subject: Re: [PHP4BETA] re:Include path and phplib
References: 1 2 3 4 5  Groups: php.version4 
Request: Send a blank email to php-version4+get-10317@lists.php.net to get a copy of this message
Teodor Cimpoesu wrote: > wait man, don't do it! :-) you have $_PHPLIB['libdir'] for this! > you only need to find the `prepend.php3' and the rest will automagically > work. > For example try setting `php_admin_value include_path .' in httpd.conf > and/or in php.ini, then for a given file which uses PHPLIB ensure you > have > prepend.php3 in the same dir and do an include('./preprend.php3'); > Hey, I found this out when I looked through the phplib source I had just missed this for some reason, I just used the auto_prepend function in the php.ini but may use your way of putting the file in any directories that use phplib as I don't really like the idea of having alot of unused code prepended to every file. thanks :-) Joseph Blythe mailto:joe.blythe@binarylogic.com.au

« previous php.version4 (#10317) next »