PHP | cURL (original) (raw)

Last Updated : 11 Jul, 2025

The cURL stands for 'Client for URLs', originally with URL spelled in uppercase to make it obvious that it deals with URLs. It is pronounced as 'see URL'. The cURL project has two products libcurl and curl.

**What is PHP/cURL?
The module for PHP that makes it possible for PHP programs to access curl functions within PHP. cURL support is enabled in PHP, the phpinfo() function will display in its output. You are requested to check it before writing your first simple program in PHP.

php `

`

**Simple Uses: The simplest and most common request/operation made using HTTP is to get a URL. The URL itself can refer to a webpage, an image or a file. The client issues a GET request to the server and receives the document it asked for.
**Some basic cURL functions:

**Example:

php `

result=curlexec(result = curl_exec(result=curlexec(ch); echo $result; ?>

`

**Output:

output

**Reference: https://www.php.net/manual/en/book.curl.php