stv Posted February 27, 2006 Share Posted February 27, 2006 I just installed Apache 2 and PHP 5.1.2 on this Windows 2000 pc. All is well, phpinfo is returning what I expect, etc.But, I have an extension that I'm trying to use. That's not working. My PHP code says "Call to undefined function m_get()", where m_get is one of the functions in the extension.Here's what happens when I do php -m from the command line:C:\php>php -mPHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\php503_mgw.dll' - The specified procedure could not be found. in Unknown on line 0[PHP Modules]bcmathcalendarcom_dotnetctypedatedomftpiconvlibxml(etc)As you can see from this, I added an "extension=php503_mgw.dll" to php.ini, changed the "extension_dir" in my php.ini to C:/php/ext, and I copied the dll to there (and also to C:/winnt/system32, for luck). I have tried all combinations of forward and backslashes, trailing slash in extension_dir, upper case, lower case, etc. So, what am I missing here? I don't think the dll is bad, but would this be the error message I would get if it was? Quote Link to comment https://forums.phpfreaks.com/topic/3704-unable-to-load-dynamic-library/ Share on other sites More sharing options...
lfcg83 Posted April 11, 2006 Share Posted April 11, 2006 check versions of the extension and the php.exe file. those 2 files must belong to the same version of PHP package Quote Link to comment https://forums.phpfreaks.com/topic/3704-unable-to-load-dynamic-library/#findComment-25746 Share on other sites More sharing options...
Monroe Posted April 11, 2006 Share Posted April 11, 2006 It would tell you something about a build mismatch if you had different versions. Quote Link to comment https://forums.phpfreaks.com/topic/3704-unable-to-load-dynamic-library/#findComment-25754 Share on other sites More sharing options...
rpjd Posted December 20, 2007 Share Posted December 20, 2007 I have PHP5 installed on Windows XP. After installation I copied all dll's from c:/Program Files/PHP/ext to c:/WINDOWS/system32.I have "C:\Program Files\PHP;c:\Program Files\PHP\ext" in my environment PathIN php.ini: include_path = "./PHP/" PHPIniDir = "C:/Program Files/PHP" extension_dir="C:\Program Files\PHP\ext"I then tried running php -v in Dos and got this:PHP Warning: PHP Startup: Unabled to load dynamic library 'c:\Program Files\PHP\ext\php_oci8.dll' The specified module could not be found.This warning is repeated for:php_pdo_oci.dllphp_pdo_oci8.dllphp_pdo_sqlite_external.dllphp_pspell.dllphpsybase.dllpho_ibm_db2.dllphp_ifx.dllphp_maxdb.dllphp_mcve.dllphp_netools.dllphp_oracle.dllphp_pdo_ibm.dllphp_pdo_informix.dllphp_svn.dllAlso this appeared:PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'php_ingres2.dll'I got pop up warnings saying the following were missing:OCI.dllsqlite3.dllaspell-15.dlllibcs.dllDB2CLI.dllisqlt09a.dlllibSQLDBC_C.dlllibmonetra.dllIcrzo.dllOCIW32.dllICLIT09B.dllintl3_svn.dllAnyone any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/3704-unable-to-load-dynamic-library/#findComment-419664 Share on other sites More sharing options...
phpjabbers Posted December 27, 2007 Share Posted December 27, 2007 I think the problem you have is because you have enabled all extensions during PHP installation. You have to open php.ini and disable all the extensions (just comment the lines). Just leave the extensions that you need because the others (like Orcales oci8 lib) are looking for external files and libs. Quote Link to comment https://forums.phpfreaks.com/topic/3704-unable-to-load-dynamic-library/#findComment-424005 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.