Hi all
I'm working on a site here where I include parts of the site that are called in multiple locations in it's own sub directory. I created a file in said directory and tried to include it in a file, but for some reason tis' not working. Here's the code that is within that file.
<?php
require_once("a_file.php"); //this file loads
require_once("another_file.php"); //so does this one
require_once("problem_file.php"); //this one does not.
echo foo('I exist');
?>
and the code for the file not being found.
<?php
function foo($string) {
if ($string) {
return $string;
}
}
?>
The spelling for the file has been verified to be correct in both the file with the require and the file being called. The include path in the .htaccess file is correct (otherwise none of the required files would load without the full path being specified. The error message is "failed to open stream: No such file or directory". All permissions are the same for the files in the include directory.
Has anyone else ran into this issue?