Well, after installing an upgrade to PHP 8.2.17, I am getting an error message regarding curl.
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: E:/ProgramFiles
From command prompt, cURL is running. The version, I assume that is delivered with Windows 10.
But what turned out to be my problem was the version of php_curl.dll wasn't being read. Not sure if it was a bad file in my original download and instllation, or if I did something later in my attempts to resolve the issue. In the end, the things I did that seemed to help included:
- Edited php.ini file so that:
- removed the semicolon from the line extension=curl
- ensured the line extension_dir = "C:/PHP/EXT"
- Added my php folder ("C:/PHP") to the Windows system path in Environment Variables.
- I didn't find a way to verify the php_curl.dll file was the same version as my PHP, so I:
- Downloaded PHP-8.2.17 again and unzipped it to a new folder
- Moved all the files from the new folder "C:\newfolder\ext" to my previously installed PHP folder {C:\php\ext)
- Restarted my Apache server, and checked phpinfo to see cURL was enabled.
Success!