Accessing a directory

I need to require_once("temp/config.php"); a file that resides outside the protected folder. Can anyone suggest how I can do that.

Directory listing.

htdocs->my application->required folder

                                      protected


                                      index.php

Check out your app’s index.php file for some inspiration.

No inspiration from looking at the index file. Can somebody help here.

How about:





require_once(dirname(__FILE__).'/relative/path/to/file/you/want/to/require/');




If you place the "require_once" code in the index.php file the call would be




require_once(dirname(__FILE__).'/htdocs/my application/required folder/config.php');