@noemy.bosco
To enable cURL in XAMPP, you need to follow these steps:
- Locate the php.ini file:
In your XAMPP installation directory, navigate to the "php" folder.
Look for the php.ini file (it might be named php.ini-development or php.ini-production).
- Open the php.ini file in a text editor.
- Search for the following line in the php.ini file:
;extension=curl
- Uncomment the line by removing the semicolon at the beginning:
extension=curl
- Save the php.ini file and close the text editor.
- Restart the Apache server in XAMPP:
Open the XAMPP control panel.
Stop Apache by clicking on the "Stop" button.
Start Apache again by clicking on the "Start" button.
- Verify that cURL is enabled by creating a PHP file with the following code:
Save the file as phpinfo.php in your XAMPP htdocs folder.
- Open a web browser and access http://localhost/phpinfo.php.
If you see "cURL is enabled" on the page, then cURL is successfully enabled in XAMPP.
That's it! You have now enabled cURL in XAMPP.