Here is the output I get for print_r(get_loaded_extensions())
echo "<pre>" ;
print_r(get_loaded_extensions()) ;
echo "</pre>"
Array
(
[0] => bcmath
[1] => calendar
[2] => com_dotnet
[3] => ctype
[4] => session
[5] => filter
[6] => ftp
[7] => hash
[8] => iconv
[9] => json
[10] => odbc
[11] => pcre
[12] => Reflection
[13] => date
[14] => libxml
[15] => standard
[16] => tokenizer
[17] => zlib
[18] => SimpleXML
[19] => dom
[20] => SPL
[21] => wddx
[22] => xml
[23] => xmlreader
[24] => xmlwriter
[25] => apache2handler
[26] => curl
[27] => mbstring
[28] => mysql
[29] => mysqli
[30] => openssl
[31] => PDO
[32] => pdo_mysql
[33] => soap
[34] => tidy
[35] => xmlrpc
[36] => amf
[37] => cpdf
[38] => docblock
[39] => http
[40] => phpdoc
[41] => SPL_Types
[42] => timezonedb
)
As you can see… mysql, mysqli, pdo_mysql are all loaded.
I’m sure for you it has to be in your ability to get php to see the ext directory. I have a suspicion that it’s not reading the extension line in your php.ini file correctly = meaning I’ve seen issues with the whole single/double quotes and direction of the slashes… eg:
; Directory in which the loadable extensions (modules) reside.
extension_dir =“C:\Program Files\PHP\ext”
vs.
extension_dir =“C:/Program Files/PHP/ext”
vs.
extension_dir =‘C:\Program Files\PHP\ext’
vs.
extension_dir =‘C:/Program Files/PHP/ext’
mine is working with:
extension_dir =“C:\Program Files\PHP\ext”
OR
the actual extensions aren’t in the proper directory.
No offense – but double check that the files
php_mysql.dll
php_mysqli.dll
are in your PHP install directory (for me it was C:\Program Files\PHP\ext).
OR (finally)
The other thing I would look for (double check) is that php.ini is what your are making adjustments to - and not the php-recommended (etc) I’ve done that in the past as well LOL… and forgot to “save-as.”
If none of this helps (and it were me) – I would just use the windoze installer… I’ve done it every which way to friday on Linux and win (including building from source/etc.). And, again, no offense to those who are way more experienced – but there is no dishonor in using the pre-built - msi file and going with it. Unless there is some compelling reason not to (I have yet hear of one)…
Located here:
http://www"dot"php"dot"net/archive/2008"dot"php#id2008-12-08-1
Download here:
http://us3"dot"php"dot"net/get/php-5"dot"2"dot"8-win32-installer"dot"msi/from/a/mirror
Be sure to ‘un-install’ and remove all the files that were copied/moved to the various locations… then run the installer. You can re-run the installer any time to ADD extensions and upgrade.
Again, sorry man… I feel your pain (shudders)