vaibhavjha
(Vaibhavjha)
1
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
dniznick
(Dniznick)
2
Check out your app’s index.php file for some inspiration.
vaibhavjha
(Vaibhavjha)
3
No inspiration from looking at the index file. Can somebody help here.
Dave
(Deventer)
4
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');