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

How to Enable cURL Support for PHP in XAMPP?

Barbara Streisand
Barbara StreisandOriginal
2024-12-09 16:25:13344browse

How to Enable cURL Support for PHP in XAMPP?

How to Configure PHP for cURL Support on XAMPP

cURL is a library that enables PHP to make HTTP requests. To use cURL with PHP, you need to ensure it is properly enabled.

Steps to Enable cURL on Different Platforms:

Debian with Apache 2:

  • Install the correct PHP cURL package:

    apt-get install php5-curl
    • Restart Apache:

      /etc/init.d/apache2 restart
    • Alternatively, if using PHP 4:

      apt-get install php4-curl

The above is the detailed content of How to Enable cURL Support for PHP in 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