You are here: Re: Determining document root when $_SERVER['DOCUMENT_ROOT'] is not an option « PHP Programming Language « IT news, forums, messages
Re: Determining document root when $_SERVER['DOCUMENT_ROOT'] is not an option

Posted by Jerry Stuckle on 06/27/07 01:29

laredotornado@zipmail.com wrote:
> Hi,
>
> We're using PHP 4.4.4 with Apache 2 on Linux. Aggravatingly, the
> hosting company has done something to where $_SERVER['DOCUMENT_ROOT']
> no longer returns the path to the web root directory. I have now gone
> through all my code and replaced $_SERVER['DOCUMENT_ROOT'] with a
> constant, DOC_ROOT. Now, the challenge is to define the constant.
>
> Suggestions?
>
> One important thing. The file the constant will be defined in is not
> necessarily going to be a file at the web root level.
>
> Thanks for all your help, - Dave
>

IMHO if they can't or won't fix $_SERVER['DOCUMENT_ROOT'], then it's
time to change hosting companies. I wouldn't host with a company who
screwed up such an important predefined value.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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