PC端Web应用测试环境构建-目录问题

发布于 2024-09-01 02:38:06 字数 552 浏览 1 评论 0原文

我有一个实际具有此目录结构的站点。

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

目录 public_html/conf/ 包含一个名为 conf.php 的文件,

该文件包含以下内容:

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

我想将此应用程序复制到测试 PC 来测试它。 测试PC使用XAMPP Apache。 测试机上的“根”目录是:C:\xampp\htdocs\

我的问题: 1. 逻辑路径“/home/mydir/”在哪里定义? 2. 我应该采取什么步骤才能让它在我的测试机器上工作,最好通过服务器配置而不是更改应用程序。

谢谢。 (PS 也许这个问题最好在服务器溢出网站上提出。)

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.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲影 2024-09-08 02:38:06

您可以使用 $_SERVER["DOCUMENT_ROOT"] 作为文档根目录。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文