How set direct access to php file I use fancybox to send function "You got new message", and i have newmessage.php on server and i want to hide this newmessage.php when user go to test.com/newmessage.php show messsage no direct access to file ?
If user got new message show newmessage.php function on fancybox ...
I try this but when is open fancybox and i get no direct access to file ...
if(!defined('MyConst')) {
die('Direct access not permitted');
}