note 117518 added to dir.constants
| From: | Harrison | Date: | Tue, 23 Jun 2015 12:04:57 +0000 |
| Subject: | note 117518 added to dir.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202927@lists.php.net to get a copy of this message | ||
DIRECTORY_SEPARATOR is a lifesaver! A hacker must never know what php files you have included into
your php webpages or your php scripts that javascript calls upon. If you were to use '/'
to include a file, the hacker can instantly know that the file you included is there, however, if
you use DIRECTORY_SEPARATOR then the hacker would not know the file has been included.
----
Server IP: 72.52.91.14
Probable Submitter: 78.144.189.164
----
Manual Page -- http://php.net/manual/en/dir.constants.php
Edit -- https://master.php.net/note/edit/117518
Del: integrated -- https://master.php.net/note/delete/117518/integrated
Del: useless -- https://master.php.net/note/delete/117518/useless
Del: bad code -- https://master.php.net/note/delete/117518/bad+code
Del: spam -- https://master.php.net/note/delete/117518/spam
Del: non-english -- https://master.php.net/note/delete/117518/non-english
Del: in docs -- https://master.php.net/note/delete/117518/in+docs
Del: other reasons-- https://master.php.net/note/delete/117518
Reject -- https://master.php.net/note/reject/117518
Search -- https://master.php.net/manage/user-notes.php