资源描述:
《[Node.js.for.PHP.Developers(2012.11)].Daniel.Howard.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Node.jsforPHPDevelopersDanielHowardNode.jsforPHPDevelopersbyDanielHowardCopyright©2013DanielHoward.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,busin
2、ess,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editors:SimonSt.LaurentandMeghanBlanchetteProofreader:KaraEbrahimPro
3、ductionEditor:KaraEbrahimIndexer:PotomacIndexing,LLCCopyeditor:JasmineKwitynCoverDesigner:KarenMontgomeryInteriorDesigner:DavidFutatoIllustrator:RebeccaDemarestDecember2012:FirstEditionRevisionHistoryfortheFirstEdition:2012-11-28FirstreleaseSeehttp://oreilly.com/catalog/erra
4、ta.csp?isbn=9781449333607forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.Node.jsforPHPDevelopers,theimageoftheWallachiansheep,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsuse
5、dbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrade‐markclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,the
6、publisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-33360-7[LSI]TableofContentsPreface........................................................................v1.Node.jsBasics..............
7、.................................................1ThenodeandnpmExecutables1StackTraces7EclipsePDT92.ASimpleNode.jsFramework.................................................21AnHTTPServer21PredefinedPHPVariables29APHPExamplePage423.SimpleCallbacks.............................
8、..............................47Linearity49MakingCodeLinear574.AdvancedCall