开发者

Protect the Folder using Apache and Access that File using PHP

开发者 https://www.devze.com 2023-02-23 03:26 出处:网络
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开发者_Python百科 code.Some Deny in a .htacc

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开发者_Python百科 code.


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.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消