Home > Backend Development > PHP Tutorial > Why is \'Call to undefined function curl_version()\' appearing after installing curl on Windows?

Why is \'Call to undefined function curl_version()\' appearing after installing curl on Windows?

Barbara Streisand
Release: 2024-11-03 17:43:03
Original
875 people have browsed it

Why is

Installing curl on Windows

Issue

While attempting to install and configure curl on Windows, you encounter the error: "Call to undefined function curl_version()" despite having allegedly installed and configured the required components.

Solution

To install curl on Windows, follow these steps:

  1. Visit the curl download wizard at https://curl.haxx.se/dlwiz?type=bin.
  2. Select your operating system (Win32 or Win64) and choose whether to use curl in a Windows Command Prompt or a Cygwin/MinGW terminal.
  3. Download the version with SSL enabled or disabled according to your preference.
  4. Extract the downloaded files to a location like C:Program Files.

Testing curl

  1. Open a Windows Command Prompt.
  2. Set the path to include the directory where curl.exe is located:

    set path=%path%;"c:\Program Files\curl"
    Copy after login
  3. Type curl in the command prompt. You should see a message indicating that curl is installed and the path is correct.

The above is the detailed content of Why is \'Call to undefined function curl_version()\' appearing after installing curl on Windows?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template