【发布时间】:2015-02-05 01:05:56
【问题描述】:
如果我用浏览器(通过localhost/file.php)打开这个文件(下面的代码),一切都会按预期运行。但是在使用 Coda Preview 功能时,它会显示每个包含的错误:
Warning: include(./sections/title.php): failed to open stream: No such file or directory in - on line 4 Warning: include(): Failed opening './sections/title.php' for inclusion (include_path='.:') in - on line 4
Warning: include(./sections/form.php): failed to open stream: No such file or directory in - on line 10 Warning: include(): Failed opening './sections/form.php' for inclusion (include_path='.:') in - on line 10
如何使用 Coda Preview 解决此问题?
<html>
<head>
<?php
include("./sections/title.php");
?>
</head>
<body>
<p>Form 1</p>
<?php
include("./sections/form.php");
?>
</body>
</html>
【问题讨论】: