我有一个站,有10来个html的文件,
现在想把加密授权使用。
应该怎么写来实现呢。
我百度里抄了个,单独命名了m.php
现在怎么让首页index.html能先加载m.php验证正确了,再继续执行显示正确的代码
------解决方案--------------------
把你的html改成php,然后在最顶,加上include('m.php'); 就可以了。
m.php
index.php
index
index page
http://localhost/index.php 会显示no permission
http://localhost/index.php?username=fdipzone&password=123456 显示index.php的内容。
