ID:               36282
 Updated by:       [EMAIL PROTECTED]
 Reported By:      doctor at hmportal dot pl
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: Irrelevant
 PHP Version:      6CVS-2006-02-04 (CVS)
 New Comment:

This is definitely something that should be the responsibility of the
web server, and not PHP.


Previous Comments:
------------------------------------------------------------------------

[2006-02-04 10:02:09] doctor at hmportal dot pl

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.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36282&edit=1

Reply via email to