Re: include hassle
| From: | Reuben D. Budiardja | Date: | Fri, 02 Aug 2002 13:37:19 +0000 |
| Subject: | Re: include hassle | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110824@lists.php.net to get a copy of this message | ||
On Friday 02 August 2002 10:02 am, lallous wrote:
> I have this:
> //file1.php
> <?
> include('../libs/lib1.php');
> ?>
> now lib1.php:
> <?
> include ('helper.php');
> ?>
> If i run file1.php ->includes lib1.php -> fails to include helper.php ! !
> how can i solve that?
We need more information that this. What's the error message? what do you mean
fails?
In anycase, you should be able to run lib1.php first without error, before
trying file1.php. If the former causes error, resolve that first.
rdb
>
> p.s: currently, i'm chdir()ing to the ../libs path, then i return to
> current dir...
> my code cannot make use of Apache's help. (like setting the include path
> inside .htaccess)
>
> thank you,
> Elias