Re: [PHP4BETA] re:Include path and phplib

From: Date: Tue, 15 Feb 2000 13:06:23 +0000
Subject: Re: [PHP4BETA] re:Include path and phplib
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-10292@lists.php.net to get a copy of this message
Joseph H Blythe wrote: > > Teodor Cimpoesu wrote: > > > Try specifing the full path > > (r u using PHP4?) > > if (include('/usr/local/include/php-lib/prepend.php3')) > > print "did it!"; > > Then tell us what your php installation thinks about it :) > > > > Well this seems to work as it does return "did it!", so I would have to go > through all the src in phplib and change all the include paths, this seems a > little harsh as one thing I try never try to do is explicitly hard code paths > into my source code but if this is the only way to get this working I guess > I'll have to grin a bear it :) 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'); -- CIMPOESU Teodor, Web Programmer @ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo@digiro.net , +(401)-330.47.28 official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/

« previous php.version4 (#10292) next »