How does PHP mysqli or pdo run MySQL commands

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

When using mysqli or PDO in a PHP script what are the mechanics that take place for the sql query to run?

Does the mysqli module run shell_exec() with a mysql command? I m sure there is something more here.

  Edit   

More specifically what I wanted to know was what is the process that PHP takes to actually make a MySQL call, what are the mechanics involved for PHP to have access to the database.

Answers

https://dev.mysql.com/doc/refman/5.0/en/c-api.html https://dev.mysql.com/doc/refman/5.0/en/c-api.html

Both PHP extensions are written by implementing low-level C functions from this API.

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/31682399/how-does-php-mysqli-or-pdo-run-mysql-commands

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils