Home  >  Article  >  Backend Development  >  新手请问require路径有关问题

新手请问require路径有关问题

WBOY
WBOYOriginal
2016-06-13 11:10:59802browse

新手请教require路径问题
www.domain.com绑定在./根目录下面

pay.domain.com绑定在./e/member/pay

现在./e/member/pay下面的php文件需要require的文件位于./e/class下面

请问路径该如何写

只因为一个二级域名好像麻烦了不少

php require
------解决方案--------------------
服务器上的路径和域名没多大关系,和文件系统有关
域名是向外解析的,内部不需要理会
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn