Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- From: "Rik" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 17:42:01 +0100
monomaniac21 wrote:
Why does this find the file:
<img
src="<?=$_SERVER['DOCUMENT_ROOT']?>/images/viessmann_header_logo.gif">
But this does not?
$right_content =
$_SERVER['DOCUMENT_ROOT']."includes/content/content.php";
include $right_content;
Perhaps:
$_SERVER['DOCUMENT_ROOT']."/includes/content/content.php";
Note the extra slash.
--
Rik Wasmus
.
- Follow-Ups:
- Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- From: monomaniac21
- Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- References:
- Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- From: monomaniac21
- Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Prev by Date: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Next by Date: Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Previous by thread: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Next by thread: Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Index(es):