php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36282 Gateway keyword
Submitted: 2006-02-04 10:02 UTC Modified: 2006-02-04 13:20 UTC
From: doctor at hmportal dot pl Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 6CVS-2006-02-04 (CVS) OS: Irrelevant
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-02-04 10:02 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-04 13:20 UTC] derick@php.net
This is definitely something that should be the responsibility of the web server, and not PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 05 19:01:30 2024 UTC