Reputation: 690
HI, I want to protect only my documents folder in the Web server and I did by placing .htaccess file in that directory but how to access that file in my PHP code.
Upvotes: 1
Views: 295
Reputation: 17910
to access the files you can use file_get_contents() or file() functions. There are many ways to access the files. is that what you looking for?
Upvotes: 0
Reputation: 401002
Some Deny
in a .htaccess
file will no effect on PHP -- which means you can access the files in your folder wih PHP file-system functions.
Upvotes: 2