note 97479 deleted from function.exit by danbrown

From: Date: Thu, 22 Apr 2010 14:09:10 +0000
Subject: note 97479 deleted from function.exit by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168512@lists.php.net to get a copy of this message
Note Submitter: Reclaim the Doc-Root! ---- @albert and @jbezorg: (and other inexperienced php.net readers) I consider "checking included files for execution" a bad practice. If you have files that you don't want accessible to web users, don't stick those files in your web-server's document root. If for some reason you can't place documents outside your doc-root, at least put those files in an "include only" directory (and deny access to all web-browsers). Regardless, as @albert says, you do need an "exit()" after every "header('Location: ...')".

« previous php.notes (#168512) next »