You are here: Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT'] « PHP Programming Language « IT news, forums, messages
Re: Problems including a file referenced from SERVER['DOCUMENT_ROOT']

Posted by Rik on 12/28/06 16:42

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация