I've designed a web site that controls pages display depending on username/password and date.
It works fine when I am sending a PHP file of course since the control job
is done at the beginning:
<?php
if(the user is identified and is allowed to browse)
{
display page;
}
else
{
display an error message
}
?>
However, I'd like to do the same while serving HTML pages (i mean
dot html pages!). Those pages are NOT containing any PHP code.
How could I always add a PHP header to any of the htm/html files
in Apache ?
I would add something like:
<?php if(! the user is identified and is allowed to browse) die("Not allowed"); ?>
Is it possible ? Could you point me to any URL explaining this ?