note 68257 rejected from function.include by nlopess
| From: | nlopess@php.net | Date: | Wed, 19 Jul 2006 21:46:51 +0000 |
| Subject: | note 68257 rejected from function.include by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114950@lists.php.net to get a copy of this message | ||
Note Submitter: troy at trinicom dot com
----
can anyone help with the following:
i am trying to have relative links for images or hyperlinks inside my include files which are
located in the top area folders of the web project.
when i "include" the header file somewhere down the folder tree in subfolders of
subfolders, the images and links are lost as they are literally embedded at the position of the file
that includes them .... way down in the tree.
this happens when I make the links with / or ./ or whatever.
i.e. :
root/include/header.htm > has the following ...
<img src="./images/a.jpg">
<img src="/images/a.jpg">
<img src="images/a.jpg">
does not show picture when the file which includes the header is somewhere like :
root/products/division1/index.php >
the only way is to use absolute links to the images in the include files ???
thanks
troy