Re: Setting include path to same directory as .php file.?
| From: | Daniel Convissor | Date: | Thu, 30 Nov 2000 02:14:25 +0000 |
| Subject: | Re: Setting include path to same directory as .php file.? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27955@lists.php.net to get a copy of this message | ||
Hi Dan:
Dan Lowe wrote:
>
> I left out a small detail - I don't control all of the files in ../
>
> I have a photo gallery program that I am trying to make compatible with
> PHP-Nuke so it can be dropped in as a plug-in package. It works today but
> you have to put the main PHP file for my stuff in the main PHP-Nuke
> directory - it can find everything else in its own subdirectory. Ideally I
> would like it to be all contained in a subdirectory instead.
I don't quite understand the implications of what you're saying. Regardless
of where things are, you need to call the includes relative to the directory
where the initial page is called from. As mentioned in a reply to another
post of yours on this subject, I suggest using variables set in the initial
file then using that variable name in all subsequent include requests.
If I'm misunderstanding you, please post clarification to the list.
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409