Possible Duplicate:
include file from different directory
I have a site laid out as follows:
- index.php includes include/code.php
- config.php
- include/
- code.php includes ./config.php
- admin/
- index.php includes code.php
When doing the inclusion from the primary index there are no problems, however when I try and include code.php from admin it fails to locate and include config.php