I'm teaching myself using various self-help books. Amazingly, I've gotten this far without asking for help, but now I'm stumped. I am a beginner, and don't understand many acronyms, so please be gentle in your response.
I installed Apache 5.2.2 on my Windows XP laptop, following instructions in beginner Apache/PHP/mySQL books. It works. I installed php 5.2.0, following same instructions. It works, and I've been able to complete all the exercises. I installed mySQL 5, following same instructions. It works too, and I was able to complete beginning exercises from the mysql prompt. Moving on to working with mysql through php failed miserably.
I created the following and named it mysqlconnect.php:
<?php
$mysqli = new mysqli();
?>
When I acces this through the browser (localhost:8080/mysqlconnect.php), I get the following error message: Class 'mysqli' not found in C:\Program Files\Apache Software Foundation\Apache 2.2\htdocs\mysqlconnect.php on line 2"
In trying to work through this myself, I have confirmed the following, which I suspect may or may not be relevant:
Per instructions in the books, in php.ini, I uncommented: extension=php_mysql.dll I added a line: extension=php_mysqli.dll
In looking at other settings in phpinfo. I find the following:
doc_root =
user_dir =
extension_dir = "./" (I suspect this might be the problem because the books say check this directive, without a clue what checking it might mean!)
Configuration Path (php.ini) Path: C:\php\php.ini
Server Root: C:/Program Files/Apache Software Foundation/Apache 2.2
Apache Environment: Path:C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\WINDOWS\system32\gs\gs7.05\bin;C:\Program Files\QuickTime\QTSystem\;C:\php;;C:\php;C:\Program Files\MySQL\MySQL Server 5.0\bin
Also, in response to the error message I copied mysqli.dll into the htdocs folder, but nothing changed.
I hope I've earned my spurs by getting this far on my 35-year-old liberal arts degree, but now I need encouragement. Your help, and explanations, will be unimaginably appreciated.