Hi
I have a puzzling problem with my PHP includes.
I am using IIS and I configured it to run php, but maybe I forgot to do something because my include functions only work in very specific cases and I need help to understand why and how I can fix it.
I have NO TROUBLE with includes from within the SAME directory when all files are in the same directory, including images.
The TRUE Problem:
I want to include a file from another directory. This included file has images in it. These images come from yet another directory. BUT I can only get the images to appear if I use an absolute path beginning at the site root folder. why?
In my original file, my code looks like this:
<?php
include 'includes/inside_header.html';
?>
In included file (inside_header.html), the code to get my image looks like this:
<IMG SRC="/PHP_SQL_testing/IJC_CMI/rel/2003biennial/images/footer_3.gif" WIDTH="8" HEIGHT="91" />
This code WORKS.
===> But what do I do if I want to use a RELATIVE path to go get my image???
I have been trying all day and I would love some help!!
I am building on windows 2000, but the site will reside on a unix server.
Thanks!!