本文介绍了如何在根目录之外使用文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本文件sec_pwds.txt.在此文件中,我存储了站点成员的用户名和密码.现在,出于安全考虑,我想将此文件放在根目录之外.
我的问题是
如果我将此文件放在根目录之外,那么如何使用PHP在我的站点中使用此文件中的密码和用户名.

I have a text file sec_pwds.txt. In this file I have stored the username and passwords of my site members. Now, I want to put this file outside the root directory for security purpose.
My Question is
If I put this file outside the root directory, How can I use the passwords and usernames from this file in my site using PHP.

推荐答案



这篇关于如何在根目录之外使用文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 21:10
查看更多