学 号:
基于 php 的游戏门户网站的设计与实现
Design and Implementation of a Game Portal Website
Based on PHP
系:
专业:
班级:
学生姓名:
指导教师:
2021 年 5 月
目录
1 导言.........................................................................................................................................1
1.1 研究背景及意义 .............................................................................................................1
1.2 国内外研究现状 .............................................................................................................1
1.3 论文的主要工作 .............................................................................................................2
2 相关理论与技术分析 .............................................................................................................3
2.1 PHP 语言..........................................................................................................................3
2.2 B/S 模式..........................................................................................................................4
2.3 数据库技术.....................................................................................................................6
2.4 技术方案.........................................................................................................................7
3. 系统需求分析.......................................................................................................................8
3.1.系统功能性需求分析 .......................................................................................................8
3.2.系统非功能需求分析 .......................................................................................................9
3.3.可行性分析.....................................................................................................................10
4. 系统设计结构.....................................................................................................................11
4.1.系统体系结构设计 .........................................................................................................11
4.2. 数据库设计...................................................................................................................12
4.2.1 数据库特性.................................................................................................................12
4.2.2 数据库设计范式.........................................................................................................13
4.2.3 数据库设计的步骤..................................................................................................14
4.3. PHP 连接数据库系统的实现...........................................................................................14
5. 系统的详细设计 .................................................................................................................15
5.1. 系统的平台首页 ...........................................................................................................15
5.2. 游戏特色模块 ...............................................................................................................16
5.3.博客模块.........................................................................................................................16
5.4.骑士比武模块 .................................................................................................................17
5.5.商店模块.........................................................................................................................18
6 系统测试...............................................................................................................................19
6.1 系统的测试目的和方法............................................................................................19
6.2 测试用例及结果........................................................................................................20
7 总结与展望...........................................................................................................................20
参考文献.....................................................................................................................................21
致谢.............................................................................................................................................22
摘要
当今的一些游戏网站发展迅速,给人们提供了一站式娱乐服务。本论文课题旨在对企业门
户网站管理系统的研发与设计,主要阐述了门户网站从前台UI设计到页面布局再到后台各个
功能的实现。伴随计算机技术的快速发展和互联网的普及,游戏行业也由单机化逐步转化到网
络化。同时,用户对于综合性的门户游戏网站的需求也越来越明确。因此,开发一个满足游戏
用户普遍需求的游戏门户网站具有很强的实际意义。
本文采用 PHP 作为编程语言,搭配 MySql 数据库和 Apache 服务器,构成网站的结构基
础。在页面设计上,尽量遵循简单、实用的原则,同时尽量兼顾页面的美化和功能布局的优
化,使网站的整体效果看起来简洁实用。以 HTML 作为静态页面的编程语言,以 PHP 语言编
写动态页面,实现人机的交互和用户数据的处理,将结果在浏览器和后台数据库之间进行传递
设计一个游戏门户网站。在实践过程中探索一般小型门户网站的建构方式和单一游戏网站的运
作模式。
关键字:PHP ,MySQL , 游戏门户,网站开发
Abstract
Nowadays, some game websites are developing rapidly, providing people with one-stop
entertainment services. This paper aims at the research and development and design of enterprise
portal management system, mainly expounds the portal from the front UI design to the page layout
and then to the realization of the backstage functions. With the rapid development of computer
technology and the popularity of the Internet, the game industry has gradually transformed from stand-
alone to network. At the same time, the user's demand for comprehensive portal game website is
more and more clear. Therefore, the development of a game portal to meet the general needs of game
users has a strong practical significance.
In this paper, PHP as the programming language, with MySQL database and Apache server,
constitute the structure of the site. In the page design, try to follow the simple and practical principle,
and try to take into account the beautification of the page and the optimization of the functional
layout, so that the overall effect of the website looks simple and practical. Html is used as the
programming language of static page and PHP is used to write dynamic page to realize human-
computer interaction and user data processing. The results are transferred between browser and
background database to design a game portal. In the process of practice, we explore the
construction mode of general small portal website and the operation mode of single game website.
Keywords: PHP ,MySQL,Game portal, Website development