The underlying php.ini file is the same as the one used for the php CLI and for the web page running with php/apache.īut libcrypto-.dll is not in the default download folder of php (why?). Return a list of 39 extensions, curl and openssl are missing. It returns a list of 41 extensions including curl and openssl! But, the same command in a php page (Apache 2.4):Įcho "", print_r(get_loaded_extensions()), "" Php -r "print_r(get_loaded_extensions())" For Windows 64bit, download it from here and for Windows 32bit download from here After that, save the curl.exe file on your C: drive. First you need to download the cURL executable. Maybe an hint: I've checked the list of known extensions with the DOS php command line utility: Many downloads of CURL will include the source code and it requires you to build it with C++ compilers and such. Update: Curl is now included in Windows, no need to run it via PowerShell. I've tried various versions of sslea圓2.dll, sslea圓2.dll and libssh2.dll, as I supposed one could be broken, but nothing changed. The cURL Linux command can use various network protocols to download and upload data on a Linux system.The extension_dir path is correctly set in the php.ini file (all others extensions are working).The windows PATH var contains the /php directory. There was no associated error or log found in the Windows Event Viewer.libea圓2.dll, sslea圓2.dll, libssh2.dll are in the right directory at the root of the /php directory (I also tried in the /system32 folder even it is a bad idea, but it doesn't work better).This is not a problem of uncommented extension in php.ini (" extension=php_curl.dll" is correctly uncommented).Phpinfo() confirms that curl extension is missing.Īfter a number of verifications and tests: **Fatal error: Uncaught Error: Call to undefined function curl_init()** After installing the files and configuring the php.ini file, all is running well, except a problem with the curl extension: I've recently upgraded to php 7.1.31, starting from an installation of EasyPhp (Windows 7, x86).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |