PDO
Posted by: humanbeing (---.houston.res.rr.com)
Date: February 20, 2007 10:16PM

When I run the following script ---
<?php
print_r(PDO::getAvailableDrivers());
?>
--- it returns: Array ( [0] => sqlite2 )

I edit my php.ini file to use pdo_mysql (see below notice where ; has been removed)
extension=php_pdo.dll
extension=php_pdo_sqlite.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_sqlite.dll

I check to see if the .dll files were installed and they do exist in the directory of c:\wamp\php\ext

I not sure what I'm missing. Whenever I run my a connection string I get the 'could not find driver' error.

I'm running WAMP 1.6.6 on Windows XP (Pro)

Options: ReplyQuote
Re: PDO
Posted by: yfastud (---.cable.mindspring.com)
Date: February 20, 2007 11:44PM

There are 2 php.ini, so make sure to edit the correct one through tray icon, php settings, php extension. It's enable when having arrow in front.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: PDO
Posted by: CyberSpatium (71.237.217.---)
Date: February 20, 2007 11:51PM

after you edit your php config file php.ini or your apache config file httpd.conf, you need to restart apache for the new changes to take effect.

CyberSpatium
-------------------------
WAMP English Forum Admin

Options: ReplyQuote
Re: PDO
Posted by: humanbeing (---.houston.res.rr.com)
Date: February 21, 2007 03:35AM

Did not know there was another (php.ini), but I use the system tray and edit the php.ini that is under the menu system of WAMP5. I checked to see what the settings are under the php extensions tab and the arrows are next to the (php_pdo, php_pdo_mssql, php_pdo_mysql, php_pdo_sqlite) And of couse I restated apache, still same message, restarted computer still same message.

Sorry, just saw something. I was using Zend 5.5 and it keeps throw me the error message when I test the result. I ran it under the browser window and all looks good as I get the following output.

Array ( [0] => sqlite [1] => mssql [2] => mysql [3] => sqlite2 )

Options: ReplyQuote


Sorry, only registered users may post in this forum.