- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Writing MySQL Scripts with PHP and PDO (写作与PHP和MySQL脚本PDO)
Writing MySQL Scripts with PHP and PDO
Paul DuBois
paul@
Document revision: 1.02
Last update: 2013-08-11
PHP makes it easy to write scripts that access databases, enabling you to create dynamic web pages that
incorporate database content. PHP includes several specialized database-access interfaces that take the
form of separate sets of functions for each database system. There is one set for MySQL, another for Inter-
Base, another for PostgreSQL, and so forth. However, having a different set of functions for each database
makes PHP scripts non-portable at the lexical (source code) level. For example, the function for issuing an
SQL statement is named mysql_query(), ibase_query(), or pg_exec(), depending on whether
you are using MySQL, InterBase, or PostgreSQL.
In PHP 5 and up, you can avoid this problem by using the PHP Data Objects (PDO) extension. PDO sup-
ports database access in an engine-independent manner based on a two-level architecture:
• The top level provides an interface that consists of a set of classes and methods that is the same for all
database engines supported by PDO. The interface hides engine-specific details so that script writers
need not think about which set of functions to use.
• The lower level consists of individual drivers. Each driver supports a particular database engine and
translates between the top-level interface seen by script writers and the database-specific interface
required by the engine. This provides you the flexibility of using any database for which a driver exists,
without having to consider driver-specific details.
This architectural appro
您可能关注的文档
- WORLD METEOROLOGICAL ORGANIZATION (世界气象组织).doc
- World Nutraceutical Conference Expo omics (全球营养食品博览会组学会议).pdf
- World's LNG Liquefaction Plants and (全球液化天然气液化工厂).pdf
- Worldclass ice rink chooses Vilter single screw (世界级溜冰场选择Vilter单螺杆).pdf
- Worldwide Differences in Business Values and (全球商业价值和差异).pdf
- WorldClass Fire Suppression Pumping Solutions(世界级灭火泵解决方案).pdf
- WORLDWIDE ELECTRIC VERTICAL HOLLOW (全球电动垂直空心).pdf
- WORLDWIDE Material Specification (全球材料规格).pdf
- Worldwide Leader Since 1911 for Positive (自1911年以来,全球领导人积极).pdf
- World’s largest singleunit air separation plant(世界上最大的singleunit空气分离装置).pdf
- Writing Objectives Using Bloom’s Taxonomy(写作目标使用布鲁姆的分类).pdf
- Writing Paper For 5th Grade PDF (为五年级PDF写论文).pdf
- Writing Quadratic Equations from Tables and (写作从表和二次方程).pdf
- Writing Simple Spice Netlists Hydrus(写简单的香料网表水蛇座).pdf
- Writing R Functions CMU Statistics(编写R函数卡耐基-梅隆的统计数据).pdf
- Writing Scripts TeacherLINK(编写脚本TeacherLINK).pdf
- Writing, Scheduling, and Opposing or Replying (写作、调度、反对或回复).pdf
- Written by Jamie Matusow, EditorinChief New (写的杰米u2022Matusow EditorinChief新的).pdf
- Writing Solid code Jeff W. Barnes(编写可靠的代码杰夫·w·巴恩斯).pdf
- WS2812 VS WS2812B RGB123(WS2812 VS WS2812B RGB123).pdf
文档评论(0)