PHP的密码保护的网站 [英] php password protected website
问题描述
我是新来的网络编程和IM试图找到如何做建立一个网站,需要用户登录,查看超出主日志的任何页面在页面的一个体面工作的几个很好的例子/教程。
I'm new to web programing and im trying to find a few good examples / tutorials on how to do a decent job of creating a website that requires users to log on to view any pages beyond the main log in page.
到目前为止,我已经找到1或2的香港专业教育学院尝试过,但我一直运行到同样的问题。如果我只需要输入我希望看到手动我可以在页面的URL喜欢那里什么也没有。
so far i've found 1 or 2 that ive tried but i keep running into the same problem. If i just enter the url of the page i want to see manually i can get in like there was nothing there.
推荐答案
有HTTP验证:
http://php.net/manual/en/features.http- auth.php
或者你也可以推出自己的具有登录表单和会话跟踪:
Or you can roll your own with a login form and session tracking:
http://www.php.net/manual/en/book。 session.php文件。
HTTP认证意味着用户得到一个弹出对话窗口,询问用户名和密码,这比自推出版本平常少。
Http auth means the user gets a pop-up dialog window asking for a username and password, it's less usual than the self-rolled version.
享受!
这篇关于PHP的密码保护的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!