this is what i do add this code to top of file:
PHP Code:
/** Prevent direct access from url to file that holds this code
change db.php to name of fie you add this code into */
if(stristr(htmlentities($_SERVER['SCRIPT_NAME']), 'db.php')){
echo '<meta http-equiv="Refresh" content="0; url=index.php">';
die();
}
Leave a comment: