欢迎来到天天文库
浏览记录
ID:4361201
大小:2.20 MB
页数:33页
时间:2017-11-30
《c语言实现php框架》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、C语言实现PHP框架摘要本课题通过研究国内外流行的PHP框架及对其工作原理的分析,找出了PHP站点性能的瓶颈所在。针对找到的问题,本课题以C为开发语言,使用PHP底层的ZendAPI,设计并实现了MVC程序框架,有效提高了PHP站点的性能。并通过开发一套基于此框架的个人Blog系统,验证其可行性和有效性。设计中第一部分是绪论,讨论了本课题的意义,以及PHP技术的发展前景;第二部分是系统分析,探讨了PHP的工作原理与及存在的性能问题,同时介绍了MVC结构的概念与优缺点;第三部分是总体设计,明确了框架的功能结构和实现必要性,设计了Blog的功能与数据库结构
2、;第四部分是详细设计,主要讲述了框架的运行流程与几个主要模块的实现方式,以及Blog各层的实现方式;最后是测试,验证了Blog的功能和框架的性能。关键词:框架MVCZend接口PHP性能ThePHPFrameworkimplementedbyCLanguageABSTRACTThisprojectisaimedtofindoutthebottleneckoftheperformanceofthePHPsitebyanalysingthepopularPHPframeworkanditsworkingprinciple.Thisprojectisbase
3、donClanguageandtheZendAPIofPHP,whicheffectivelyimprovedtheperformanceofPHPsite.AndthenverifythefeasibilityandeffectivenessofthisprojectbydevelopingaPersonalBlogSystemwhichbasedonthisframework.Thefirstchapterofthisarticleisanintroductionwhichintroducesthemeaningofthisissueandthed
4、evelopmentprospectsofPHPtechnology.Thesecondchapterisaboutsystemanalysing,whichexplainstheworkingprincipleandlifecycleofPHP.Inthemeantime,thesecondchapteralsointroducestheconception,strengthsandweaknessofMVCstructure.Thethirdchapterismainlyabouttheoveralldesignofthisproject,whic
5、hclearsthefunctionalstructureofthisframework.Besides,thethirdchapterdesignsthefunctionanddatabasestructureoftheBlog.Thefourthchapterismainlyaboutthedetaileddesign,whichexplainstherunningprocessesofthisframeworkandthefunctionofseveralmainmodules.Thefourthchapterexplainstherealiza
6、tionofthisBlogaswell.Thefinalpartofthearticleismainlyaboutsystemtest,whichverifythefunctionofthisBlogandtheperformanceoftheframework.Keywords:FrameworkMVCZendAPIPHPPerformance目录第一章绪论11.1系统开发背景11.2国内外研究现状11.3本课题研究的内容和方法21.4本课题实现的意义2第二章系统分析32.1PHP程序概述32.1.1PHP简介32.1.2PHP的生命周期32.1.
7、3PHP与服务器的关系32.2PHP性能42.2.1PHP对性能的优化42.2.2PHP性能的瓶颈42.2.3解决方案52.3MVC概述62.3.1MVC简介62.3.2MVC的优点62.3.3MVC开发的复杂度62.4Blog概述72.5系统开发环境和运行平台7第三章总体设计83.1框架设计83.1.1框架实现目标83.1.2MVC的设计93.1.3MVC结构的实现93.2Blog总体设计113.2.1Blog功能设计113.2.2Blog前台设计113.2.3Blog后台设计123.2.4数据表设计13第四章详细设计164.1框架流程设计164.1
8、.1框架运行步骤164.2框架组件设计174.2.1自动加载组件174.2.2路由组件184.
此文档下载收益归作者所有