Home >Backend Development >PHP Tutorial >How to Enable cURL in PHP within XAMPP?

How to Enable cURL in PHP within XAMPP?

Linda Hamilton
Linda HamiltonOriginal
2024-12-09 02:32:10336browse

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:

  1. Install the PHP cURL package:
apt-get install php5-curl

(Use php4-curl for PHP 4)

  1. Restart Apache:
/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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn