RE: [PHP] Site Structure
| From: | John Huggins | Date: | Mon, 23 Apr 2001 15:34:41 +0000 |
| Subject: | RE: [PHP] Site Structure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49869@lists.php.net to get a copy of this message | ||
I would suggest putting your includes out of the web tree.
/.../website/htdocs/admin
/.../website/htdocs/images
/.../website/includes
This may be totally inappropriate for now, but is a good habit to get into.
Call the includes with the full pathname. I know this stinks, but is a good
solution if you define most of your path with a variable.
> -----Original Message-----
> From: Jordan Elver [mailto:jjelver@worldsites.net]
> Sent: Monday, April 23, 2001 10:56 AM
> To: PHP General Mailing List
> Subject: [PHP] Site Structure
>
>
> Hi,
> I have a site structure like:
>
> -> root
> ---> includes
> ---> admin
> ---> images
>
> I'm using headers and footers and they are in the includes directory. My
> pages in the root directory include the files like:
>
> include('includes/header.inc');
>
> Thats woprks fine, but i want to be able ti use the same headers
> and footers
> in the admin directory but, of course, the paths are going to be wrong.
>
> How can i get around this?
>
> Any ideas,
>
> Jord
>
> --
> 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
>