|
Posted by LiquidEyes on 03/06/07 10:56
I want to use a particular PHP extension (php_curl.dll). I have tried to
enable it by uncommenting the following line in php.ini:
extension=php_curl.dll
then restarting the Apache server.
Unfortunately I get the following message in error.log:
PHP Warning: Unknown(): Unable to load dynamic library 'C:\\Program
Files\\php-4.4.6-Win32\\extensions\\php_curl.dll' - The specified module
could not be found.\r\n in Unknown on line 0
I get the same problem with some other extensions as well -- not just cURL.
E.g. I have tried enabling these for comparison:
extension=php_iconv.dll
extension=php_ifx.dll
These give the same error message (apart from the DLL name of course).
However many extensions seem to load without error, e.g.:
extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_db.dll
extension=php_hyperwave.dll
The extensions path is definitely there in php.ini:
extension_dir = "C:\Program Files\php-4.4.6-Win32\extensions"
(I've tried it with and without quotes.)
* The DLLs are definitely all there in the extensions folder -- I can see
them in Explorer!
* I've tried using a different extensions folder (e.g. c:\php). No
difference.
* I know that, generally, PHP *can* see the DLLs in the extensions folder.
For example, if I enable the php_bz2 extension but rename the DLL, it gives
an error. If I then fix the filename, it works again.
* I've tried copying php_curl.dll to C:\Windows\System32, as people have
suggested in various posts on the internet. No difference.
I'm running Apache 2 with PHP 4.4.6 on Windows XP.
Other than this particular problem, everything seems to be fine with my
configuration. I'm teaching myself PHP and my scripts are working as
expected. I just can't get this darn extension to load! Suggestions highly
welcome!
Thanks in advance.
Navigation:
[Reply to this message]
|