毕设外文翻译Word文档下载推荐.docx

上传人:b****2 文档编号:13315151 上传时间:2022-10-09 格式:DOCX 页数:9 大小:27.85KB
下载 相关 举报
毕设外文翻译Word文档下载推荐.docx_第1页
第1页 / 共9页
毕设外文翻译Word文档下载推荐.docx_第2页
第2页 / 共9页
毕设外文翻译Word文档下载推荐.docx_第3页
第3页 / 共9页
毕设外文翻译Word文档下载推荐.docx_第4页
第4页 / 共9页
毕设外文翻译Word文档下载推荐.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

毕设外文翻译Word文档下载推荐.docx

《毕设外文翻译Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《毕设外文翻译Word文档下载推荐.docx(9页珍藏版)》请在冰豆网上搜索。

毕设外文翻译Word文档下载推荐.docx

基于PHP和MYSQL的网站设计和实现

学院:

计算机学院

专业:

网络工程

班级:

网络1101

学生姓名:

周从军

导师姓名:

朱辉职称:

讲师

Abstract

PHPandMYSQLhasbeenthemainwebdevelopmenttoolforitisfreeandopensource.TheauthorshavediscussedtheenvironmentalissuesindevelopmentprocessbasedonPHPandMYSQLandtheimplementationprocessofthewebsite.KeywordsPHP;

MYSQL;

DevelopmentandImplementation.

1.INTRODUCTION

WiththedevelopmentofWebtechnology,itisinevitablechoiceforallkindofcorporategrowthtocombinetraditionalmarketingwithnetworkmarketing.Theeffectivemethodofnetworkmarketingistoestablishthewebsitewhichissuitablefortheircompany.Atpresentthewebsitedevelopment'

smainstreamplatformincludes:

LAMP(Linuxoperatingsystem,Apachenetworkserver,MYSQLdatabase,PHPprogramminglanguage),J2EEand.Netcommercialsoftware.BecausePHPandMYSQLisfree,opensourceandsoon,theyarenotedforITprofessionals.Fromtheperspectiveofwebsitetraffic,morethan70%ofwebsitetrafficisprovidedwithLAMP,whichismostpopularplatformfordevelopingthewebsite.Inthispaper,wedesignedawebsitebasedonPHPandMYSQL.Thepaperisorganizedasfollows.Section1makeconclusionInSection5.

2.DEVELOPMENTENVIRONMENTANALYSIS

A.TheChoiceofDevelopmentLanguage

ASP.NET,PHP&

JSParethreemainstreamlanguagesofthewebsitedevelopment,whichhavetheiradvantagesanddisadvantagesrespectively,thecomparisonbetweenthemisshowninTable1.TheprojecttakesPHPasthedevelopmentlanguage,thereasonisasfollows:

•Free.Theprojectissmall,whichisnoneedtousethepaymentdevelopmentplatformsuchasASP.NETandJSP.•Strongsupporting.Middleandsmallscalewebsites,evensomelarge-scalewebsitessuchasbaidu,SinainChinatakePHPasthedevelopmentlanguage,whichcancontributetosolvetheproblemduringtheprogramming.analyzesdevelopmentenvironment.InSection2,weproposedthedevelopmentmodelbasedonPHP.ThencasestudyinSection4.we

•Goodportability.AlthoughitisdesignedtouseintheenvironmentofLinuxandApacheWebserversystematfirst,nowPHPisalreadytransplantedanyoperatingsystemandcompatiblestandardWebserversoftware.•Simplegrammar.PHPhasmanysimilaritieswiththeCprogramminglanguage,soitiseasytoprogramusingPHPfortheCprogrammers.•Rapiddevelopment.Becausethesourcecodeisopen,PHPwillcontinuetodeveloprapidly.

WhenZeevSuraskiaddedtheobject-orientedsyntaxbackinthedaysofPHP3,itwasaddedas"

syntacticsugarforaccessingcollections."

TheOOmodelalsohadsupportforinheritanceandallowedaclass(andobject)toaggregatebothmethodsandproperties,butnotmuchmore.WhenZeevandAndiGutmansrewrotethescriptingengineforPHP4,itwasacompletelynewengine;

itranmuchfaster,wasmorestable,andboastedmorefeatures.However,theOOmodelfirstintroducedinPHP3wasbarelytouched.Althoughtheobjectmodelhadseriouslimitations,itwasusedextensivelyaroundtheworld,ofteninlargePHPapplications.ThisimpressiveuseoftheOOPparadigmwithPHP4,despiteitsweaknesses,ledtoitbeingthemainfocusforthePHP5release.So,whatweresomeofthelimitationsinPHP3and4?

Thebiggestlimitation(whichledtofurtherlimitations)wasthefactthatthecopysemanticsofobjectswerethesameasfornativetypes.So,howdidthisactuallyaffectthePHPdeveloper?

Whenassigningavariable(thatpointstoanobject)toanothervariable,acopyoftheobjectwouldbecreated.Notonlydidthisimpactperformance,butitalsousuallyledtoobscurebehaviorandbugsinPHP4applicationsbecausemanydevelopersthoughtthatbothvariableswouldpointatthesameobject,whichwasnotthecase.Thevariableswereinsteadpointingatseparatecopiesofthesameobject.Changingonewouldnotchangetheother.Forexample:

classPerson{var$name;

functiongetName(){return$this->

name;

}functionsetName($name){$this->

name=$name;

}functionPerson($name){$this->

setName($name);

}}functionchangeName($person,$name){$person->

}$person=newPerson("

Andi"

);

changeName($person,"

Stig"

print$person->

getName();

InPHP4,thiscodewouldprintout"

.Thereasonisthatwepasstheobject$persontothechangeName()functionby-value,andthus,$personiscopiedandchangeName()worksonacopyof$person.Thisbehaviorisnotintuitive,asmanydeveloperswouldexpecttheJava-likebehavior.InJava,variablesactuallyholdahandle(orpointer)toth

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考试认证 > IT认证

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1