毕设外文翻译Word文档下载推荐.docx
- 文档编号:13315151
- 上传时间:2022-10-09
- 格式:DOCX
- 页数:9
- 大小:27.85KB
毕设外文翻译Word文档下载推荐.docx
《毕设外文翻译Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《毕设外文翻译Word文档下载推荐.docx(9页珍藏版)》请在冰豆网上搜索。
基于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
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 翻译