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