![]() ![]() There is documentation to enable PDO for a mysql specific-driver. PDO is enabled by default as of php 5.1.0 on most linux systems. For more information, see: HowTo: Create a local environment using MAMP. ![]() MAMP comes pre-configured with the PDO extension. (For instructions on configuring your development environment, see: OS X 10.6: OS 10.6 comes with the PDO extension enabled by default. Getting PHP + GD + PostgreSQL working on OS X 10.5 (aka recompiling everything).Getting PHP + GD + pdo_mysql working on OS X 10.5 (aka recompiling everything).OS X 10.5: Detailed, step-by-step instructions are available here: Specify "FastCGI", then modify the installed extensions to include these two, then restart your server. The preferred method for enabling them is to go to the Control Panel | Add/Remove Programs, highlight your PHP installation and click "Change" (Change/Remove - XP). For IIS, PDO DLLs are not enabled by default.However, you still need to activate php_pdo_mysql.dll for MySQL or for whichever database you're using. Under Windows, it may no longer be required to enable PDO when using newer versions of PHP, namely, PHP version 5.3 and later. For Apache, you will need to make sure php_pdo.dll and php_pdo_mysql.dll exist in the php/ext directory, un-comment or add the appropriate lines in php.ini, and restart the web server.To enable PDO, configure -enable-pdo and -with-pdo-sqlite -with-pdo-mysql or whatever database needs supporting by PDO (see the PHP manual for more information). PDO is a more like a data access layer which uses a unified API (Application Programming Interface). ![]() PDO is not an abstraction layer like PearDB. This means developers can write portable code much easier. PDO is a lean, consistent way to access databases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |