【发布时间】:2017-11-13 19:25:12
【问题描述】:
所以,我有一个这样的目录结构:
include/
scripts/
contact.css
contactform.php
ReadMe.txt
show-captcha.php
thank-you.php
在show_captcha.php 文件中添加以下内容以包含来自/include 子目录的 PHP 文件。
require_once("./include/fgcontactform.php");
这段代码完美运行。
我的问题是不应该是这样的:
require_once("include/fgcontactform.php");
没有./ 前缀?这个路径是什么意思?
【问题讨论】:
标签: php path require-once