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

新手请问require路径有关问题

WBOY
Release: 2016-06-13 12:57:03
Original
820 people have browsed it

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

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

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

请问路径该如何写

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

php require
------解决方案--------------------
服务器上的路径和域名没多大关系,和文件系统有关
域名是向外解析的,内部不需要理会
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template