Return to Snippet

Revision: 51570
at September 28, 2011 16:30 by cdohost


Initial Code
if (stristr(htmlentities($_SERVER['PHP_SELF']), "config.php")) 
{
	Header("Location: ../index.php");
   	die();
}

Initial URL


Initial Description
Prevent direct access to php file (Prevenir acesso direto ao arquivo php)

Initial Title
PHP - Prevent direct access to php file

Initial Tags
php, redirect

Initial Language
PHP