include question
| From: | PJ | Date: | Fri, 06 Mar 2009 13:37:15 +0000 |
| Subject: | include question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-289451@lists.php.net to get a copy of this message | ||
good morning all,
How can I include src and href in include files that will refer the
right paths from files in different hierarchies(directory tree levels)?
Example:
include dirname(_FILE_)."/../lib/header1.php"; ?
This does not work:
snippetysnip...
<LINK href="dirname(_FILE_).'/../lib/index.css'" rel="stylesheet"
type="text/css">
</head>
Nor does this: (NOTE THE DIFFERENCES " AND ' IN THE SRC AND HREF)
<div id="frame">
<IMG SRC=dirname(_FILE_)."/../images/bannerbae1.gif" ...snippetysnip
Perhaps it's not possible?
--
unheralded genius: "A clean desk is the sign of a dull mind. "
-------------------------------------------------------------
Phil Jourdan --- pj@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php