Hello,
I've just stumbled on the part of the PHP manual that talks about include(), and allthough I've used this features for a long long time I was surprised to read people who are trying to do everything possible to protect the access to their included files (eg: .ht, hidden directories, etc...).
Knowing the fact that the browser can't read what isn't echoed and knowing the fact that the user can't have any clue about the name of the included file, I'm wondering why they are trying to do that.
Did I miss something? Are they just on cafein?
One more thing. I've seen many sites that don't show the PHP filenames in the address bar by using folders instead or by configuring their httpd.conf to do so. Well, as I never took those precautions, I would like to know what the risk are to show the filenames as long as you pass variables with forms or cookies only.
Many thanks!
I've just stumbled on the part of the PHP manual that talks about include(), and allthough I've used this features for a long long time I was surprised to read people who are trying to do everything possible to protect the access to their included files (eg: .ht, hidden directories, etc...).
Knowing the fact that the browser can't read what isn't echoed and knowing the fact that the user can't have any clue about the name of the included file, I'm wondering why they are trying to do that.
Did I miss something? Are they just on cafein?
One more thing. I've seen many sites that don't show the PHP filenames in the address bar by using folders instead or by configuring their httpd.conf to do so. Well, as I never took those precautions, I would like to know what the risk are to show the filenames as long as you pass variables with forms or cookies only.
Many thanks!