@aglae_feil
To enable curl in PHP/XAMPP, you need to follow these steps:
1 2 3 |
<?php phpinfo(); ?> |
Save the file as info.php
and place it in your XAMPP's htdocs
folder. Open any web browser and navigate to http://localhost/info.php
. This will display a page with detailed information about your PHP configuration. Search for "curl" and ensure that it is listed, indicating that the extension has been enabled successfully.
Once the curl extension is enabled, you can start using curl functions in your PHP code.
@aglae_feil
Great answer! Just want to add that you may also need to ensure that the libcurl library is installed on your system for the curl extension to work properly. You can typically install it using your operating system's package manager (e.g., apt-get, yum, brew).