Re: nested includes()...
| From: | David Robley | Date: | Tue, 09 Oct 2001 03:07:52 +0000 |
| Subject: | Re: nested includes()... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70414@lists.php.net to get a copy of this message | ||
On Tue, 9 Oct 2001 12:14, Christian Dechery wrote:
> that would be the easyest solution... but what if I don't have access
> to my php.ini file?
> I'm builiding a system that has to work even if the user don't have
> administrative rights...
>
> At 12:03 9/10/2001 +0930, you wrote:
> >On Tue, 9 Oct 2001 10:50, Christian Dechery wrote:
> > > I have a file x.php that includes a.inc, and a.inc includes
> > > b.inc...
> > >
> > > if I have a file dir/z.php including ../a.inc it doesn't work cuz
> > > it won't find b.inc...
> > >
> > > how can I get around this???
> >
> >Set your include path to cover all the locations of the files
> >
If you can use .htaccess files, you can use the Apache directives as per
the Configuration section of the manual. Alternatively, use ini_set if
you have PHP4.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Useless Invention: Hand-powered chainsaw.