Clever Geek Handbook
📜 ⬆️ ⬇️

PHP Data Objects

PHP Data Objects ( PDO / ˌpi di ˈoʊ / ) is an extension for PHP that provides the developer with a universal interface for accessing various databases .

PDO offers common methods for working with various databases, although the text of the queries may vary slightly. Since many DBMS implement their own dialect of SQL , which to one degree or another supports the ANSI and ISO standards , using simple queries can achieve compatibility between different languages. In practice, this means that you can easily switch to another DBMS, without changing or partially changing the program code.

Content

Speed ​​and Scalability

PDO does not use abstract layers to connect to the database, like ODBC , but uses their "native" drivers for different databases, which allows to achieve high performance. Currently, there are drivers for PDO for almost all well-known DBMSs and interfaces. PDO also allows you to work simultaneously with multiple databases.

Protection

Of the methods for dealing with sql injections, prepared appeared. A prepared statement is a precompiled SQL statement that can be executed multiple times by sending only different data sets to the server. An additional advantage is the inability to conduct SQL injection through the data used in placeholders.

Library Updates Discontinued .

See also

  • Php
  • Adob

Links

  • Description of PDO on the official site of PHP (English)
  • PECL PDO Extension Page
Source - https://ru.wikipedia.org/w/index.php?title=PHP_Data_Objects&oldid=101561763


More articles:

  • Kushnir Izolda Mikhailovna
  • All-Russian Manufacturing Exhibition in Moscow (1831)
  • Northwest Partisan Territory
  • Rhodesian Sugar Medosos
  • Dioceses of Antioch Orthodox Church
  • Three Lords and Five Emperors
  • Time Travel Legends
  • Bodoni, Giambattista
  • North Reef (Solomon Islands)
  • Mitleres-Nordfriesland (management)

All articles

Clever Geek | 2019