![]() dll file is by adding the location of the PHP folder in the Path System environment variable. One way is to manually copy the libssh2.dll file to the Windows system folder, but a better solution is to tell Windows where the. Curl is a potent yet easy-to-use command-line tool used for testing APIs and in automation scripts. To enable PHP Curl extension, open php.ini file, find extensionphpcurl.dll, uncomment this line, and restart Apache server. We learned two different ways to make cURL work on Windows. Curl is a PHP extension that allows PHP applications to send and receive data using URL syntax. To enable an extension, we just need to uncomment it, but with the cURL extension, just uncommenting the extension=curl line might not be enough. PHP has many extensions that are disabled by default in the php.ini file. Having a location for PHP folder there will not work. In that case, double-check that you didn't add the PHP location in Path for user variables. ![]() If it is enabled, the script will display bool(true), if on other hand it is still not enabled, it will display bool(false). We could confirm that the cURL is working by using the phpinfo() function that outputs all the PHP configuration information, but to just check for the cURL extension, we can use the following code: Testing if PHP cURL extension really is enabled The PHP cURL extension should now be active, so let's test if this is indeed the case. If restarting the server doesn't work, restarting the computer should do the trick.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |