You are here: Re: Directory path issue « PHP Programming Language « IT news, forums, messages
Re: Directory path issue

Posted by Jerry Stuckle on 10/12/07 01:15

kanwal wrote:
> Hi,
>
> I have one php application that uses server path like /var/www/
> direcory in queries and also while calling files etc, and uses
> __FILE__ to fetch the path.
>
> I have installed apache on Windows XP and when I try to runs the
> application locally, script results in C:\apache\htdocs\testapp
> \index.php and here application stops working.
>
> Can anybody suggest or give an idea how I can have the similar path
> while working locally.
>
> Thanks
>
>

$_SERVER['DOCUMENT_ROOT'] contains the path to the root directory of
your server. Everything can be based off of this. And no parsing
necessary, as is required with __FILE__.

--
==================
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

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