和考生信息管理等功能的无纸化在线考试系统。该系统是基于PHP和MySQL,为了配合网上教学建立的“网上考试系统”,实现网上学习一体化而设计的。设计本系统要熟悉HTML,PHP语言及MySQL数据库的编辑和应用。其中用到了Dreamweaver帮助进行站点和网页设计,还用到了phpmyadmin对MySQL数据库进行可视化操作。
全文共分为绪论、系统分析、设计工具及关键技术介绍、系统概要设计、系统详细设计、系统测试、 总结展望、参考文献。详细阐述了系统分析、系统设计的方法及其内容。
关键词:在线考试系统;及时阅卷;基于php;MySQL
II
ABSTRACT
With the development of science and technology, network technology has deep into the People's Daily life, and the way of education brings a transformation. And network exam is a very important direction. Based on the Web technology network exam system can all over the world by Internet. So the exam can in local, or in other cities, greatly expand the flexibility of the exam. And shorten the traditional test request print examination paper, arrange the exam teacher, monitors, collection, as a test, evaluation and analysis of the test paper test papers, the long and complex process, tend to be more objective and fair exam.
This paper introduces a on-line exam, timely with scores query scoring, and examination questions and the examinee information management functions of network on-line examination system. The system is based on PHP and MySQL, in order to match the online teaching set up "online examination system, the realization of online learning and the integration of design. Design the system must be familiar with the HTML, PHP language and MySQL database editors and application. With the help of Dreamweaver on site and web design, still use the phpmyadmin MySQL database of visual operation.
Full text is divided into the introduction, system analysis, design tools and key technology is introduced, the system design, system detailed summary design, system test and summarized the outlook and references. Expounds the system analysis, system design method and its content.
Keywords: on-line examination system; Timely reading; Based on the PHP; MySQL
III
目 录
1 绪 论 ................................................................................................................ 1 1.1 系统开发的现状............................................................................................ 1 1.2 系统开发的目的............................................................................................ 2 1.3 系统开发的意义............................................................................................ 2 2 系统分析............................................................................................................. 3 2.1 可行性分析 ................................................................................................... 3
2.1.1 经济可行性 ............................................................................................ 3
2.1.2 技术可行性 ............................................................................................ 3 2.2 需求分析 ....................................................................................................... 3 2.3 开发环境 ....................................................................................................... 4 3 设计工具及关键技术介绍 .................................................................................. 5 3.1 APACHE简介 ............................................................................................... 5 3.2 PHP语言简介 ............................................................................................... 5 3.3 PHP 连接MYSQL数据库 ............................................................................ 6
3.3.1 PHP连接数据库的两种方法 ................................................................. 6
3.3.2 PHP对MySQL数据库的两种连接方式............................................... 6
3.4 AJAX简介 .................................................................................................... 7 4 系统概要设计 ..................................................................................................... 8 4.1 系统的总体设计............................................................................................ 8 4.2 数据库设计 ................................................................................................... 8 4.3 系统结构设计 ............................................................................................... 9
4.3.1 系统功能结构 ........................................................................................ 9
4.3.2 系统流程图 .......................................................................................... 10 5 系统详细设计 .................................................................................................... 11 5.1 数据库设计 .................................................................................................. 11
5.1.1 数据库分析 ........................................................................................... 11
5.1.2 概念设计 ............................................................................................... 11
i
5.1.3 数据库物理结构 .................................................................................. 13 5.2 系统详细设计与实现 .................................................................................. 14
5.2.1 系统配置 .............................................................................................. 14
5.2.2 前台详细设计与实现 ........................................................................... 15
5.2.3 后台详细设计与实现 ........................................................................... 25
6 系统测试........................................................................................................... 30 6.1 测试环境 ..................................................................................................... 30 6.2 什么是软件测试.......................................................................................... 30 6.3 软件测试的目标与方法 .............................................................................. 30
6.4 系统评估 ..................................................................................................... 31
7 总结与展望 ....................................................................................................... 32参考文献 ................................................................................................................ 33 致 谢 .................................................................................................................... 34 附 录 .................................................................................................................... 35
ii
1 绪 论
1.1 系统开发的现状
世界各国对教育的发展给予了前所未有的关注,都试图在未来的信息社会中让教育处于一个优势的位置,从而走在社会发展的前列,为此许多国家都把信息技术应用于教育,采取