note 68257 added to function.include

From: Date: Wed, 19 Jul 2006 21:46:10 +0000
Subject: note 68257 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-114948@lists.php.net to get a copy of this message
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 ---- Server IP: 217.174.203.10 Probable Submitter: 68.92.195.202 ---- X-Spam-Status: No, hits=4.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_IMAGE_ONLY_06,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/note/edit/68257 Del: integrated -- http://master.php.net/note/delete/68257/integrated Del: useless -- http://master.php.net/note/delete/68257/useless Del: bad code -- http://master.php.net/note/delete/68257/bad+code Del: spam -- http://master.php.net/note/delete/68257/spam Del: non-english -- http://master.php.net/note/delete/68257/non-english Del: in docs -- http://master.php.net/note/delete/68257/in+docs Del: other reasons-- http://master.php.net/note/delete/68257 Reject -- http://master.php.net/note/reject/68257 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114948) next »