Hi. Basically what I'm trying to do is to prevent people from typing for example http://mysite.com/music.php in their browser and seeing the page.Instead, I would like to have a message as simple as "You do not have permission to directly view this page"
I've tried several ways to do this and here is what I've come up with:
if (eregi("music.php",$PHP_SELF)) {
echo "You do not have permission to directly view this page!";
die();
{
This still shows the message whether I type in the url or if accessed from another page.Any help?