Home >Backend Development >PHP Tutorial >How to Enable cURL in XAMPP's PHP Environment?
Question: How can I enable cURL functionality within the PHP environment of XAMPP?
Answer: To enable cURL in PHP using XAMPP on Debian systems with Apache 2, follow these steps:
apt-get install php5-curl /etc/init.d/apache2 restart
Note: If you are using PHP version 4, replace php5-curl with php4-curl in the installation command.
By executing these commands, you will install the missing cURL module for PHP and subsequently restart Apache to enable its usage. This configuration will allow your PHP scripts to leverage the cURL library for performing HTTP requests and managing data transfer.
The above is the detailed content of How to Enable cURL in XAMPP's PHP Environment?. For more information, please follow other related articles on the PHP Chinese website!