Re: Require() using relative path
| From: | Ryan Adams | Date: | Tue, 25 Jul 2000 15:08:38 +0000 |
| Subject: | Re: Require() using relative path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8056@lists.php.net to get a copy of this message | ||
Man, I'd like to see something like this too. I'm working on a reporting
system that includes files with includes in them, across several directories.
It would be really nice to have a function that did it automatically...
Would that go against the current architecture? How are includes/requires
currently implemented?
Ryan
On Wed, Jul 19, 2000 at 05:37:07PM +0800, Ken M. Mevand wrote:
> hi folks,
> i'm just starting to program in php, so please forgive me if this
> question is dumb.
>
> here is my file layout :
>
> index.php
> |- templates
> | |-default.php
> | |-welcome.php
>
> i called index.php which includes default.php, which in turn includes
> welcome.php. can the 2nd include in default.php be done using
> require("welcome.php")
>
> instead of
> require("templates/welcome.php") ?
>
> -ken
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
---end quoted text---