guvenck
07-14-2008, 11:40 AM
Hello,
I need to produce an Error 404 with PHP.
I want some users be able to access the file.php (based on their permissions) if they are allowed to.
For the ones who don't have access to file.php, I don't want to display a "You are not allowed" kind of message, but an Error 404, as if the file does not exist.
How can I do that? I don't want to use the header command to another file, since it would display the name of the second file in the address bar.
I need to produce an Error 404 with PHP.
I want some users be able to access the file.php (based on their permissions) if they are allowed to.
For the ones who don't have access to file.php, I don't want to display a "You are not allowed" kind of message, but an Error 404, as if the file does not exist.
How can I do that? I don't want to use the header command to another file, since it would display the name of the second file in the address bar.