I have a bizarre situation regarding paths. Normally when I want to connect to the database I’ll put one line in as follows, and everything is fine:
include_once “./connect.php”;
The connect.php file is in the main directory, and I have a bunch of other files in a sub directory. For some reason, one file in the sub directory requires me to do the following, or else it won’t find the file (while all other files in the same sub directory are okay using the line above).
include_once “…/connect.php”;
Can anyone explain this seemingly illogical phenomenon?