urls and paths...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Any help appreciated.

I have a php file which contains a request for a header and footer.

This file is in http://www.mydomain.com/folder1/folder2/index.php

If I have my header and footer in:


What is the path to these files that I should use in the index.php file
to access these include files?

Do I have to use the full static URL
(http://www.mydomain.com/folder1/includes/header.inc )?
Or is there a way like "//includes/header.inc"
Where I can come down a level in the heirarchy and reach the file?

Thanks for your help.

Re: urls and paths...

Quoted text here. Click to load it

You can use relative paths ie include "../includes/header.inc"

Re: urls and paths...

Thanks Andy,

I got it to work at the same time you posted.
Appreciate your help.

Site Timeline