Re: [PHP] includes linking to other files, help with relatives

2009-12-06 Thread Midhun Girish
Hello Allen McCabe, it doesnt matter from which folder you call the database.php file. only thing u must take care is to use correct path in the database.php file so that key.txt is accurately referenced. if you are still having problems, use absolute paths instead of relative path...hers

[PHP] includes linking to other files, help with relatives

2009-12-06 Thread Allen McCabe
I am creating a database connection path that check for a session variable to get the username, password, dbname, etc., but if the session has not been set yet, I need my script to get those values from another file (KEY.txt) where they are saved. I want to access this class from two directories, a