In my server, my root directory is: home
And all public files (www directory) is in: home/public_html
Ok, i want to put some files in others directories out of the www directory, example: home/configs, or home/php_classes
And i want to include the files on those directories from some files in www directory.
basically, i want to home/public_html/index.php to include files that are in home/configs and home/php_classes
I've tried:
include("../configs/site_config.php");
include("../php_classes/mailer.php");
AND
include("/home/configs/site_config.php");
include("/home/php_classes/mailer.php");
But it doesn't work, i keep receiving the include warning "No such file or directory"