Welcome Guest, Not a member yet? Register   Sign In
Handling confidential files
#5

[eluser]Colin Williams[/eluser]
"Your thinking is spot on" = "You are correct"

You wouldn't be protecting it with .htaccess, but that would probably be part of the system. You could have the rewrite rules in any Apache configuration. What protects the file is your PHP script, which Apache would have invoked to handle the request.

Quote:If a file is called directly (assuming somebody found out path and filename), PHP has nothing to do with it anymore and can’t give any protection.

Again, this is true only if you have Apache configured in such a way that it is responsible for serving the file. With the right configuration, PHP will be invoked to serve the file.

By the way, what is your native language?


Messages In This Thread
Handling confidential files - by El Forum - 10-23-2008, 08:36 AM
Handling confidential files - by El Forum - 10-23-2008, 12:08 PM
Handling confidential files - by El Forum - 10-23-2008, 12:35 PM
Handling confidential files - by El Forum - 10-24-2008, 01:08 AM
Handling confidential files - by El Forum - 10-24-2008, 01:17 AM
Handling confidential files - by El Forum - 10-24-2008, 01:25 AM
Handling confidential files - by El Forum - 12-09-2009, 04:48 AM
Handling confidential files - by El Forum - 12-09-2009, 04:59 AM
Handling confidential files - by El Forum - 12-09-2009, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB