pTutorial

New way to learn Programming

How to enable PHP PDO extension

Steps of enabling PHP PDO extension

1. First you have to find out the PHP configuration file (php.ini).

2. To find php.ini type phpinfo() function in a file and request it on a browser see     the path of php.ini file. To more detail visit:- Locate php.ini file

3. Open the php.ini file and find one of following line shown below.

PHP PDO Extension

;extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll  for mysql
;extension=php_pdo_oci.dll      
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll    for pgsql
extension=php_pdo_sqlite.dll    for sqlite 

4. To enable these extension or a particular extension remove the semicolon (;) in front of us.


extension=php_pdo_mysql.dll

5. Now you are ready to write php program with PDO.

See Also


QUOTES OF THE DAY

Wicked men obey from fear, good men from love

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER