I seem to have the problem that in a php file I wrote, I can not seem to link an external file:
-bash-4.1$ pwd
/home/mywebsite.com/public_html/incl
-bash-4.1$ ls
toinclude.php hereisthecode.php
hereisthecode.php
<?php
$file = "toinclude.php"; // file permission is set to 755
// alternatives which were tried:
// $file = "./toinclude.php";
// $file = "http://mywebsite.com/incl/toinclude.php";
file_exists($file); // returns false
?>