Hi everybody. I've been searching through forums and i didint find what im aiming to. I wanna include some php files from outside the public html folder, this is one of the solutions ive found:
$phpbb_root_path= $_SERVER['DOCUMENT_ROOT']."/";
include($phpbb_root_path . 'common.' . $phpEx);
The problem is that i dont know if it is working cause im using AMFPHP to use with flash and i think it even dont reach to call the "connect to database" cause im not retrieving any mysql error. PHP its activated.
Im a bit noobie, the question is if as when u program in your localhost with xaamp, for example, u can include files from your include path, that by default i think its set to c:\xaamp\php\PEAR\ or any other/s folder/s outside the httdocs(public) directory, with any problem. Im asking this to know if my config.php(or the file that contains database variables,user,pass..),have to be of public domain.
The conclussion is that i want to include files from outside the public folder, and if anybody knows how to config amfphp.
$phpbb_root_path= $_SERVER['DOCUMENT_ROOT']."/";
include($phpbb_root_path . 'common.' . $phpEx);
The problem is that i dont know if it is working cause im using AMFPHP to use with flash and i think it even dont reach to call the "connect to database" cause im not retrieving any mysql error. PHP its activated.
Im a bit noobie, the question is if as when u program in your localhost with xaamp, for example, u can include files from your include path, that by default i think its set to c:\xaamp\php\PEAR\ or any other/s folder/s outside the httdocs(public) directory, with any problem. Im asking this to know if my config.php(or the file that contains database variables,user,pass..),have to be of public domain.
The conclussion is that i want to include files from outside the public folder, and if anybody knows how to config amfphp.