note 15168 deleted from function.die by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 30 Aug 2001 23:54:33 +0000 |
| Subject: | note 15168 deleted from function.die by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17401@lists.php.net to get a copy of this message | ||
I've a similar problem to the die() command.
I've several .inc.php in a directory named templates/ witch are suposted to be called form the
main index.php. I want to display a message when someones call one file in the template directory.
like: (header.inc.php)
<? if (basaname($PHP_SELF) == "header.inc.php") {
die( "Cannot run this script directly");
}
?>
<HTML><BODY......
What happens is that the scripts it prints with de message and de HTML. I just want de message