note 82611 deleted from function.defined by danbrown

From: Date: Fri, 30 Jan 2009 21:35:37 +0000
Subject: note 82611 deleted from function.defined by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150017@lists.php.net to get a copy of this message
Note Submitter: admin at baceto dot com ---- if (!defined("X")) { echo "You Cannot Access This Script Directly, Have a Nice Day."; exit(); } This one is nice, actually for half an hour I was searching for an idea or a tip how to protect some files that must be accessed only if are included in another file ( that would admin.php). This one would perfectly do the trick. Thanks a lot!

« previous php.notes (#150017) next »