【发布时间】:2011-12-22 06:18:00
【问题描述】:
我正在尝试使用相对文件路径将文件包含在不同的目录中,但是我不断收到错误消息:
failed to open stream: No such file or directory
调用include语句的文件路径是
wp-content/plugins/php-code-widget/execphp.php
我要包含的文件是
wp-content/uploads/espresso/templates/sidebar_widgets/register_widget.php
这是我的包含声明:
<?php include ('../../uploads/espresso/templates/sidebar_widgets/register_widget.php ?>
有人发现问题了吗?
【问题讨论】:
标签: php include relative-path filepath