I use php and mysql. Many books and guides advise put sensitive information like database password and user name in separate file located outside of domain root folder, actually above this folder, one level higher. So, php script could access this files using command include ('../connect_info.php');, but hackers could not access this file via http request. This method works perfect with other web hosting providers. But when I use freehostia, php even cannot see files outside domain root folder. This method works if I put both files (main and included) in the same folder, however this is not good for security. I think this is because freehostia settings do not allow at all php to access files outside domain root folder. I can upload the file connect_info.php above domain root folder using FTP, but php cannot access this file. Please advise how can I access files located one level higher than my domain root folder using php include command - include ('../connect_info.php');
|