note 97479 added to function.exit
| From: | ReclaimtheDoc-Root! at osu1 dot php dot net | Date: | Thu, 22 Apr 2010 06:25:31 +0000 |
| Subject: | note 97479 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168493@lists.php.net to get a copy of this message | ||
@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: ...')".
----
Server IP: 69.147.83.197
Probable Submitter: 74.179.121.116
----
Manual Page -- http://www.php.net/manual/en/function.exit.php
Edit -- https://master.php.net/note/edit/97479
Del: integrated -- https://master.php.net/note/delete/97479/integrated
Del: useless -- https://master.php.net/note/delete/97479/useless
Del: bad code -- https://master.php.net/note/delete/97479/bad+code
Del: spam -- https://master.php.net/note/delete/97479/spam
Del: non-english -- https://master.php.net/note/delete/97479/non-english
Del: in docs -- https://master.php.net/note/delete/97479/in+docs
Del: other reasons-- https://master.php.net/note/delete/97479
Reject -- https://master.php.net/note/reject/97479
Search -- https://master.php.net/manage/user-notes.php