Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- From: "monomaniac21" <mcyi2mr3@xxxxxxxxxxxxxx>
- Date: 28 Dec 2006 08:42:11 -0800
sorry that was typo document root contains the a forward slash
Rik wrote:
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:
- References:
- Prev by Date: Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Next by Date: Re: Creating PDFs in PHP
- Previous by thread: Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Next by thread: Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']
- Index(es):