1

I have a site that physically has this directory structure.

-public_html
--conf     > contains file conf.php 
-SiteFiles
-LiveSite > contains file ConfLive.php 

Directory public_html/conf/ contains a file called conf.php

this file contains the following include

include_once('/home/mydir/SiteFiles/LiveSite/conf/ConfLive.iphp');

I want to copy this application to test PC to test it. Test PC uses XAMPP Apache. "Root" directory on the test machine is: C:\xampp\htdocs\

My questions: 1. Where is logical path "/home/mydir/" defined? 2. What steps should I take to get this to work on my test machine preferably by server configuration and not changing application.

Thanks. (PS maybe this question is better posed at Server Overflow site.)

LF00
  • 27,015
  • 29
  • 156
  • 295
ernie
  • 119
  • 10

1 Answers1

0

You can use $_SERVER["DOCUMENT_ROOT"] as the document root.

edwin
  • 2,643
  • 20
  • 17
  • I would like to avoid changing the application, plus I fix one and I keep finding more. – ernie May 07 '10 at 23:12