|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-04 13:20 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 06:00:02 2025 UTC |
Description: ------------ Hi there ! I don't know if this was discussed earlier but I found that it would be nice to have something like gateway keyword in PHP. There are many PHP files that shouldn't be accesed directly from user's browser. As we know the best option which solves the problem is to put the files in the separate folder outside public_html but unfortunately some hosts don't allow this. So the second option is to put in each file something like "if (LOCK) die('You can't acces this page directly')" but this on the other hand is somewhat annoying, not foolproof, bug-generating etc. Putting gateway word on the top of a few accesible files seems to be trivial yet useful and nice feature, easy to implement as well. Thank for attention and appologies if I missed something. Best regards, Michal.