Re: Setting include path to same directory as .php file.?

From: Date: Thu, 23 Nov 2000 02:36:41 +0000
Subject: Re: Setting include path to same directory as .php file.?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-26782@lists.php.net to get a copy of this message
Can this be done from inside an individual script? I have an application which needs to include files from a particular directory but it is frequently not an option for my users to munge around in php.ini. The problem is that my app is trying to co-exist with php-Nuke. I have to include two files, which then go ahead to include further files. I can simply include "../header.php" for example, but then it tries to include one or more other files and then it fails because they aren't in '.' with my script. So I have to move my script to the same as the other include files, but that is not too popular with some users, so I'm trying to find a way to do it "right" and have everything relating to my script exist in a subdirectory, not tainting the "main" directory in which phpNuke resides. TIA, -dan Previously, James Atkinson said: > Just set it to > include_path = "./:/my/path:/my_path/here"; > > etc etc. > That'll work for Unix but I don't know about NT as I never use NT.. -- Dan Lowe <dan@tangledhelix.com> http://tangledhelix.com/ A witty saying proves nothing. -Voltaire

« previous php.general (#26782) next »