Home >Backend Development >PHP Tutorial >How to Enable cURL in PHP within XAMPP?
Enabling cURL in PHP for XAMPP
cURL, a popular library used for making HTTP requests, is an essential tool for PHP web applications. This question explores how to enable cURL in PHP within the XAMPP environment.
To enable cURL in PHP on Debian with Apache 2, follow these steps:
apt-get install php5-curl
(Use php4-curl for PHP 4)
/etc/init.d/apache2 restart
Once these steps are complete, cURL will be enabled in PHP within XAMPP, allowing you to make HTTP requests with ease.
The above is the detailed content of How to Enable cURL in PHP within XAMPP?. For more information, please follow other related articles on the PHP Chinese website!