Possible Duplicate:
Relative include files
For example,
include('../admin/db_cred.php');
That works if I am in another folder such as public. However if I am just at www.SITE.com/index.php, it does not work.
Warning: include(../admin/db_cred.php) [function.include]: failed to open stream: No such file or directory in /home/[...].php on line 6
I added the (dot dot slash) because searching ../ does not work very well...