![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: Absolute or relative paths
From: elektrophyte <elektrophyte@yahoo.com>
Date: Sun Jul 10 2005 - 22:26:22 CEST
Within plain HTML if you start a URL with "/" that refers to the root
<img src="/images/myFile.gif" />
should work no matter where it's used.
However everything's different within PHP code. If want to refer to an
<? include($_SERVER['DOCUMENT_ROOT'] . '/include/navbar.inc'); ?>
|