If I open this file (code below) with browser (through localhost/file.php
), everything works as it is supposed to. But when using Coda Preview feature, it shows errors for each include:
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
How can I fix this issue with Coda Preview?
<html>
<head>
<?php
include("./sections/title.php");
?>
</head>
<body>
<p>Form 1</p>
<?php
include("./sections/form.php");
?>
</body>
</html>