php面向云计算的图形化程序构建方法研究_毕业论文

毕业论文移动版

毕业论文 > 计算机论文 >

php面向云计算的图形化程序构建方法研究

摘要随着计算软件系统的复杂性越来越高,采用如C++、HTML以及JavaScript等进行各种应用系统开发时,开发者需要编写大量代码来进行长时间的开发。代码编写是一个很耗费时间的工作,开发者可能需要花费大量的时间在一些网站上寻找解决问题的代码段。这的确很耗费时间,但却几乎又是不可或缺的一环。 64612

   通过云计算的方法存储查找这些代码是最好的解决方案之一。其中最重要的功能是简单并且合理的交互界面,让用户在较短的时间内能轻松的访问到他们所需要的代码,并且系统还可以根据需要对代码进行与重组,以扩大代码库的功能。

本文所做研究的环境是基于openstack云计算平台,所设计的系统利用html做网页语言,php做脚本语言,完成后台数据库与C++处理程序和前台的沟通,php服务器数据动态交互利用smarty框架,AJAX控制页面逻辑,通过页面拖拽和接口配对即可完成代码拼接,还可以在线运行代码检查代码。代码的拼接和在线运行检测代码正误,使代码冗长的编写变得更具体,更有逻辑性。

    面向云计算的图形化程序构建,充分利用了云环境的特点,保证了系统的稳定性,可扩展性和容错性[4]。

毕业论文关键词  代码编写  代码拼接  php   在线运行  检测代码 逻辑性

毕业设计说明书(论文)外文摘要

Title    Code splicer based on the cloud environment       

Abstract Many developers have had the experience of coding for a long time with many repeated codes.  Among them, there are many different kinds of languages, e.g., C++, HTML, Javascript, and etc. Therefore, it is obvious coding is a time-consuming process, and programmers might spend lots of times to search for a segment of code on the internet. However, based on the experiments, this process is inevitable during programming.

    One of the best solutions is finding and restoring such segment of codes by utilizing the cloud computing technology. One of the important features of our framework is the simple and logical interface which can make it easy for users to access their codes in a short period of time. In addition, it can reorganize and extend the original functions.

    Our proposed framework is based on the virtual environment in OpenStack. To implement the tool, HTML is used to design the webpage and PHP for doing service-oriented programming such as connecting to the database and communicating with the C++ code processor. In addition, Ajax and Smarty are utilized as the controller for the logic of the interfaces.  Through dragging, the Matching Ports is accomplishing the process of splicing. In parallel, there are also functions in the back which are used to check the correctness of codes. 

    The cloud environment can guarantee stability, reliability and flexibility of the framework which makes it attractive for the users.  

Keywords: Code Splicing, PHP, Online Detector, Cloud Environment

目   次

1  引言3

1.1  背景及意义3

1.2  代码拼接已有软件现状4

1.3  现阶段图形化程序构建局限性5

1.4  云端代码的原理5

2  系统总体设计6

2.1  系统的整体框架图6

2.2  系统部署7

3  数据库设计7

3.1  代码表8

3.2  参数表8

3.3  用户表9

3.4  ER图 9

4  服务器框架10

4.1  操作数据库对数据进行增删查10

4.2  控制网页的内容11

4.3  接受JS发送的异步请求 11

4.4  最核心的服务类service.php13 (责任编辑:qin)