2
Если я открою этот файл (код ниже) с помощью браузера (через localhost/file.php
), все будет работать так, как предполагается. Но при использовании Coda функции предварительного просмотра, он показывает ошибки для каждого включают:Ошибка пути к файлу в Coda
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>