基于
PHP技术的个人网站
设计【摘要】 随着互联网的高速发展,传统的WEB应用已经显得力不从心,而WEB2.0的出现极大改善了这一局面。所谓WEB2.0其核心就是用户不再只是被动的网页浏览者,他们既是网站浏览者,也是网站内容的制造者。未来的互联网趋势必然是WEB2.0。因此,以虚拟社区为主题,突出WEB2.0思想,构建一个由用户提供主要的网站内容,管理员只负责整理,发布用户提供的话题,然后供用户参与讨论的网站,比起传统的由管理员单一提供资源相比,有着提供资源更多,更全,网站与用户交互性更强等优势。
本课题使用PHP技术设计一个具有WEB2.0特点的个人网站及其相应的功能模块。 开发环境结合了PHP,My
sql和Apache,利用这三种开源工具,来实现一个以虚拟社区为主的个人网站。
【关键词】 WEB2.0网站,个人网站,PHP技术
Personal
web site design based on PHP
--php+
mysql+apache develop and application
【Abstract】 The plan of the thesis is to design a personal web site and function modules whitch has the characteristic of WEB2.0. The development enveriment combines PHP,Mysql,Apache,using the three open sourse tools to bring about a personal web based on virtual community.
With the Internet developing faster and faster the tradition web site was strength fall short of wishes. And the WEB2.0's appear changed the situation extraordinary. The nucleus of WEB2.0 is that the user is no longer just viewing the page passively. The user is both viewer and creater. The future of the Internet is WEB2.0. So using WEB2.0 ideology and based on virtual community to create a web site whitch user create the contents and the administator just operate the web site and publish the contents whitch created by the user. To compared with the tradition web site was more abundant,safer,and has more user exchange.
The purpose of the web site:protrude the WEB2.0 ideology,increase user exchange. For the users they are also viewer and creater that can increase the visit numbers and ease the work of the administrator.
【Key Words】 personal web site,php technology,WEB2.0,user exchange,virtual community
目录
第1章 绪论 1
1.1 WEB 2.0时代的互联网 1
1.1.1 关于WEB 2.0 1
1.1.2 关于PHP 2
1.2 个人网站和虚拟社区 2
第2章 可行性分析 3
2.1 技术可行性分析 3
2.2 网站功能分析 3
第3章 开发环境和开发方法 4
3.1 开发环境 4
3.1.1 关于PHPnow 4
3.1.2 其他开发工具 4
3.2 开发方法 5
第4章 基于PHP的个人网站设计总体设计 6
4.1主要页面 6
4.1.1 主界面 6
4.1.2 个人
日记 6
4.1.3 管理员界面 6
4.1.4 论坛界面 6
4.2 论坛功能设计 7
4.2.1 论坛运行流程图 8
4.2.2 用户级别设计 9
第5章 详细设计 10
5.1 数据库设计 10
5.1.1 博客文章表 10
5.1.2 博客评论表 10
5.1.3 用户表 11
5.1.4 用户文章表 11
5.1.5 用户文章评论表 12
5.1.6 置顶文章表 13
5.1.7 短消息表 13
5.1.8
注册码表 14
5.2 具体功能实现 14
5.2.1 用户注册登录 14
5.2.2 用户个人信息管理 18
5.2.3 管理员登录 21
5.2.4 管理员功能 21
5.2.5 博客 22
5.2.6 论坛 25
5.2.7 站内短消息 28
5.2.8
系统配置与公共头文件 28
5.2.9 javascript和Ajax 29
第6章 测试 31
6.1 测试环境 31
6.2 测试内容 31
结论 32
参考文献 33
致谢 34
图目录
图4.1 网站功能流程图 8
图5.1
登陆界面 18
图5.2 查看