When running php scripts may be you have faces an error saying cURL not installed or not enabled. So to solve this error I'm giving you simple solution. Please follow the simple steps.
This will work for XAMPP, WAMPP or directly PHP (who are not using any software for server.)
For XAMPP :
Locate your XAMPP directory.
Open 'php.ini' file located at 'XAMPP\php\php.ini'
Now search for 'curl'.