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:[EMAIL PROTECTED]]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]