Quote: |
It should analyze the current file and look for require or include or something like that, something that would prevent it from giving me the wrong file. |
Seems you need to read php manual and check how it works in more details.
In short, it's not necessary to have any include/require statements in your file and get all the functions either from "site/include/functions.php" or "include/functions.php" to be accessible.
Just a trivial example:
fileA includes "site/include/functions.php" and also includes your file where you call date_diff().
In this case date_diff will be called in site/include/functions.php.
fileB includes "include/functions.php" and also includes your file where you call date_diff().
In this case date_diff will be called in include/functions.php.
I'd recommend you to remove backup (and all other possible duplications) from the project tree. You can do this by adding its directory name into the "Hide directories" in the project properties or placing the directory into another project or at least out of current project.