Okay I'm a noob! I admit this up front.
I have a test web site running locally.
"http://localhost/testweb"
I have subdirectories under the testweb folder called includes, images and band. Includes holds all my common header and footer include files. The images directory holds all the graphics that are used in the the headers and footers. The band directory is another web page that also uses the includes and images. So the directory structure looks like this:
testweb |
|-- includes
|-- images
|-- Band
My problem is getting the paths to work properly within the index.php file that resides in the testweb directory. index.php has a lines like so:
$INCLUDEPATH = "http://localhost/testweb/includes"
require($INCLUDEPATH."/header.inc")
Here I get a fatal error:
Failed Opening required 'var/www/html/testweb/includes/header.inc"
(include path = .:/usr/share/pear) in var/www/html/testweb/index.php on line 4.
Okay so how do I set this up to work properly?
What if I move this code to a real web server how will I get it to work there?
Thanks in advance for your help!
Regards
Russ