- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
P HP外文翻译文献(文 档 含 中 英 文 对 照 即 英 文 原 文 和 中 文 翻 译 )原文:Ge t t i ng PHPt o Ta l k t o My SQlNow t hat you’r e comf or t abl e us i ng t he My SQL c l i ent t ool s t o ma ni pul a t e dat a i n t he dat abas e , you can begi n us i ng PHP t o di s pl ay and modi f y dat a f r om t he dat abas e .PHP has s t andar d f unct i ons f orwor ki ng wi t h t hedat abas e . Fi r s t , we ’r e goi ng t o di s cus s PHP’s bui l t - i n dat abas e f unct i ons . We ’l l a l s o s how you how t o us e t he The PHP Ext ens i on and Appl i cat i on Re pos i t or y ( PEAR) dat abas ef unct i ons t hat pr ovi de t he abi l i t y t o us e t he s a me f unct i ons t o acces s any s uppor t ed dat abas e . Thi s t ype of f l exi bi l i t y come s f r om a pr oces s ca l l ed abs t r act i on. I n pr ogr a mmi ng i nt er f aces , abs t r act i on s i mpl i f i es a compl ex i nt er act i on. I twor ks byr e movi ng any nones s ent i a l par t s of t he i nt er act i on, a l l owi ng you t o concent r a t e on t he i mpor t ant par t s . PEAR’s DB c l a s s es a r e one s uch dat abas e i nt er f ace abs t r act i on. The i nf or ma t i on you need t o l og i nt o a dat abas e i s r educed t o t he bar e mi ni mum.Thi s s t andar d f or ma t a l l ows yout o i nt er act wi t h My SQL,a s we l l a s ot her dat abas es us i ng t he s a mef unct i ons .Si mi l a r l y , ot her My SQL- s peci f i c f unct i ons a r e r epl aced wi t h gener i c ones t hat know how t o t a l k t o ma ny dat abas es . For exa mpl e , t he My SQL- s peci f i c connectf unct i on i s :my s ql _connect ( $db_hos t , $db_us er na me , $db_pas s wor d) ; ver s us PEAR’sDBconnect f unct i on:$connect i on =DB: : connect ( my s ql : //$db_us er na me : $db_pas s wor d@$db_hos t /$db_dat abas e) ;Thes a mebas i c i nf or ma t i on i s pr es ent i n bot h comma nds ,butt he PEARf unct i on a l s o s peci f i es
文档评论(0)