Xampp already comes with curl library. You just need to activate it.
To do that, follow steps below:
- Open search window
- Locate xampp folder in search window
- Search for php*.ini
- Open each .ini file and uncomment “;extension=php_curl.dll”
Earlier
;extension=php_curl.dll
Now
extension=php_curl.dll - Restart apache server from xampp contol panel.
To make sure it is working fine, follow these steps:
- Create a php file. With
<?php phpinfo(); ?>
written on it. - Place it in htdocs folder.
- Open http://localhost/filename.php and search for curl. If you can find it then curl is working fine.
- If you can’t find it, write here what you have done, I will try to solve the problem.