{ SOLVED } I have INI file for settings. Now, i cant store this file out of the server root, and it HAS to be in public_html.
Is there any way securing this file such that it can only be read by another PHP script and not any other users.
Printable View
{ SOLVED } I have INI file for settings. Now, i cant store this file out of the server root, and it HAS to be in public_html.
Is there any way securing this file such that it can only be read by another PHP script and not any other users.
{ solved }
Never mind solved it. And this is how i did it, in case somebody wants to know
OR somebody wants to give other suggestions
And i named it as "test.ini.php". it works the same way if i use parse_ini_file to retrieve the values, but if i try to read it directly then it would just die.Code:;<?php if(!defined('LOAD')){ dIe('Not Found');} ?>
[DB]
host = localhost