SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Cannot load extensions
-
May 14, 2005, 09:30 #1
- Join Date
- Jun 2004
- Location
- Indiana
- Posts
- 283
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Cannot load extensions
I've been using PHP for a long time now on my Windows XP Pro machine and had little problems. Today, I needed to enable a new extension (php_domxml.dll) so I just went into my php.ini and uncommented that line. I restarted apache, however, and got this error:
Warning
Unknown(): Unable to load dynamic library 'C:/PHP/extensions/php_domxml.dll' - The specified module could not be found.
In my php.ini file:
Code:; Directory in which the loadable extensions (modules) reside. extension_dir = "C:/PHP/extensions/" ... ;Windows Extensions ;Note that MySQL and ODBC support is now built in, so no dll is needed for it. ; ;extension=php_bz2.dll ;extension=php_cpdf.dll ;extension=php_crack.dll ;extension=php_curl.dll ;extension=php_db.dll ;extension=php_dba.dll ;extension=php_dbase.dll ;extension=php_dbx.dll extension=php_domxml.dll ;extension=php_exif.dll ;extension=php_fdf.dll ;extension=php_filepro.dll extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_hyperwave.dll ;extension=php_iconv.dll ;extension=php_ifx.dll ;extension=php_iisfunc.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_java.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_mcrypt.dll ;extension=php_mhash.dll extension=php_mime_magic.dll ;extension=php_ming.dll ;extension=php_mssql.dll ;extension=php_msql.dll ;extension=php_oci8.dll ;extension=php_openssl.dll ;extension=php_oracle.dll ;extension=php_pdf.dll ;extension=php_pgsql.dll ;extension=php_printer.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_sockets.dll ;extension=php_sybase_ct.dll ;extension=php_w32api.dll ;extension=php_xmlrpc.dll ;extension=php_xslt.dll ;extension=php_yaz.dll ;extension=php_zip.dll
-Melchior (Stephen Craton)
-
May 14, 2005, 11:52 #2
- Join Date
- May 2005
- Posts
- 1
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by melchiorus
Code:extension_dir = "C:\PHP\extensions"
-
May 14, 2005, 11:57 #3
And remember that in many cases to be able to load one extension you may need to load another one.
-
May 14, 2005, 12:58 #4
- Join Date
- Jun 2004
- Location
- Indiana
- Posts
- 283
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for the help. Changing the path to using backward slashes didn't work, but the second post about needing other dependencies got me searching and I found the answer.
Just for anyone else experience similar issues sometime, here's what I found:
http://bugs.php.net/bug.php?id=21245
The problem was that I started out with the windows installer version of
PHP 4.3.0 and then just copied the libxml2 and php_domxml from the
windows4.3.0.zip file to their locations. I completely forgot to copy
the other DLL's from the php_install_dir/dlls/ folder to
windows/system32. This solved the problem.
Thanks again for all the help.-Melchior (Stephen Craton)
-
May 14, 2005, 13:14 #5
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Greeg
Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
Bookmarks