changtraingheo Posted January 5, 2010 Report Share Posted January 5, 2010 I edit php.ini file: extension=php_openssl.dllextension=php_pdo.dllextension=php_pdo_firebird.dllextension=php_pdo_mssql.dllextension=php_pdo_mysql.dllextension=php_pdo_oci.dllextension=php_pdo_oci8.dllextension=php_pdo_odbc.dllextension=php_pdo_pgsql.dllextension=php_pdo_sqlite.dll And then copy that files into folder UniServer\usr\local\php\extensions , restart Apache, but can not run PDO script because "could not find driver"... and this code <?phptry { $dbh = new PDO('mysql:host=localhost;dbname=blog', 'root', 'root'); foreach ($dbh->query('SELECT * from sad_cat') as $row) { print_r($row); } $dbh = null;} catch (PDOException $e) { print "Error!: " . $e->getMessage() . "<br/>"; die();}?> Quote Link to comment Share on other sites More sharing options...
kalpz Posted January 6, 2010 Report Share Posted January 6, 2010 Hello,You mentioned you copied those files into PHP's extension directory. From where did these files come from? If they were from a PHP source download from www.php.net, did you download the same PHP version you have? Kalpz Quote ATOMIC Web Hosting 2007 - 2011 Shared Hosting - Reseller Hosting - Dedicated Servers - Virtual Private Servers (Request Dedicated/VPS Servers via E-mail) E-mail: sales@atomicwebhosting.com Website: http://www.atomicwebhosting.com/ Link to comment Share on other sites More sharing options...
netz Posted March 23, 2010 Report Share Posted March 23, 2010 Hi, I was installing a Magento with Uniserver 5.5 and got this warning about need to load pdo_mysqlSaw you post here... Found the PHP.INI file... Edit in notepad to load php_pdo_mysqlsaved and restarted the Uniserver.... Bingo :-) (Next step in Magento was more tricky... but I found that the port that uniserver default is installed to is localhost:80 <<< Port 80) (I can not have Outlook or Skype running while using Uniserver ... they properly uses the same port !??) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.