原文:
PHP 4:从Login进一步看到的
下面想补充的是所有页面的用途。如下表:
OK.现在已经熟悉了整个项目的脚本文件。是不是不太复杂呀。因为就这么几个文件。当我把所有文件讲解一次的话,相信php的知识基本上已经熟悉了。
我将从第7行的output_fns.php开始吧。
具体参看下一章。
我们已经在PHP 3:从Login界面谈PHP标记谈到了PHP标记,不过其页面代码有一句
require_once
(
'
bookmark_fns.php
'
);
那我们就看看
bookmark_fns.php这个文件吧。其代码如下:
1
<?
php
2 // We can include this file in all our files
3 // this way, every file will contain all our functions and exceptions
4 require_once ( ' data_valid_fns.php ' );
5 require_once ( ' db_fns.php ' );
6 require_once ( ' user_auth_fns.php ' );
7 require_once ( ' output_fns.php ' );
8 require_once ( ' url_fns.php ' );
9 ?>
10
这里没有什么好说的,因为都已经语法都已经介绍了。
2 // We can include this file in all our files
3 // this way, every file will contain all our functions and exceptions
4 require_once ( ' data_valid_fns.php ' );
5 require_once ( ' db_fns.php ' );
6 require_once ( ' user_auth_fns.php ' );
7 require_once ( ' output_fns.php ' );
8 require_once ( ' url_fns.php ' );
9 ?>
10
下面想补充的是所有页面的用途。如下表:
login.php |
系统登录页面 |
register_form.php |
用户注册表单。 |
register_new.php |
新用户注册脚本。 |
forgot_form.php |
用户忘记密码,需要填写的表单。 |
forgot_passwd.php |
重新设置遗忘的密码。 |
member.php |
用户的主页面,包含其所有的所有书签信息。 |
add_bm_form.php |
创建书签的表单。 |
delete_bms.php |
从书签列表中删除书签的脚本。 |
change_passwd_form.php |
修改密码的表单。 |
register_passwd.php |
修改密码页面的脚本。 |
logout.php |
用户注销页面的脚本。 |
bookmark_fns.php |
应用程序包含的文件集合。 |
data_valid_fns.php |
检查数据是否有效的函数。 |
db_fns.php |
连接数据库的函数。 |
user_auth_fns.php |
用户身份验证的函数。 |
url_fns.php |
增加或删除标签的函数。 |
output_fns.php |
以HTML形式格式化输出的函数。 |
我将从第7行的output_fns.php开始吧。
具体参看下一章。