Jump to content

mikerodent

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by mikerodent

  1. Hi all, (tried a forum search with the title of this posting ... came up with nothing) I am getting a web server and stuff together on my machine. Details: OS: WXP, apache: 2.2.14, php: 5.3.1, mysql: 5.1.41, browser: Firefox 3.5.6. my php/Apache is working fine... I encounter a problem when I try to get my php to connect to a database - on running a php file with the following line: $dbh = new PDO("mysql:host=localhost; dbname=noggindb", "root", "twiddle" ); ... I get the following response exception 'PDOException' with message 'could not find driver' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\noggindb\index.php:10 Stack trace: #0 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\noggindb\index.php(10): PDO->__construct('mysql:host=loca...', 'root', 'twiddle') #1 {main} ... anyone know what this is about? Do you have to explicitly set up a MySQL driver? I haven't seen this in my installation instructions (sitewizard.com)... I assumed one of the .dll files was a driver... php_mysql.dll, or php_mysqli.dll or libmySQL.dll... the latter file is in my MySQL\bin directory... I can't remember whether I copied it there or what... Any advice? Thanks
  2. Dear all, I am getting a web server and stuff together on my machine. Details: OS: WXP, apache: 2.2.14, php: 5.3.1, mysql: 5.1.41, browser: Firefox 3.5.6. my php/Apache is working fine... I encounter a problem when I try to get my php to connect to a database, and I'm now getting a funny message when I start Apache (or when I boot if I run Apache as an auto service). database connection prob: on running a php file with the following line: $dbh = new PDO("mysql:host=localhost; dbname=noggindb", "root", "twiddle" ); I get the following response exception 'PDOException' with message 'could not find driver' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\noggindb\index.php:10 Stack trace: #0 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\noggindb\index.php(10): PDO->__construct('mysql:host=loca...', 'root', 'twiddle') #1 {main} The thing is, and this might or might not lead to answers to both problems, I didn't notice the message on the php windows binaries download page which says "if you're using Apache, don't use the "VC9" build, use the "VC6" build". So now I've got hold of the VC6 and all these VC6 files are now in the PHP directory. I have configured the php.ini file as numerous installation guides tell you (sitewizard.com is what I've followed). Whenever I start the Apache server I get this message on a little dialog: ... what's funny to me about this is that it says "php compiled" ... and it also says that the PHP on my machine is the VC9 build, i.e. the build I installed first and shouldn't have, the bad build, the nasty build, the build I want out of my life for ever. How can I get shot of my VC9 build and any smelly traces it may have left on my computer, which might induce the latter to think the PHP I'm using is anything but the good, clean, fine VC6 build? Also, what does it mean "php compiled"?... surely this is strange if I've replaced all the VC9 files in the \PHP directory with the VC6 files (which I have)... aren't the windows binaires you extract from the .zip file you download compiled already? Alternatively, can someone tell me how to flush PHP out of every corner of my machine, including any traces pertaining to MySQL which may be in MySQL directories... so I can start from scratch with the VC6 build? Sorry about the length of this... Thanks for any help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.