top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is cURL in PHP?

0 votes
669 views
What is cURL in PHP?
posted Jun 26, 2014 by Karamjeet Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

cURL is a library that lets you make HTTP requests in PHP. Everything you need to know about it (and most other extensions) can be found in the PHP manual( http://php.net/manual/en/book.curl.php )

answer Jun 27, 2014 by Shiva Chawala
0 votes

cURL is a library that makes HTTP requests in PHP.

Here are the few functions used in cURL.
curl_close — Close a cURL session
curl_copy_handle — Copy a cURL handle along with all of its preferences
curl_errno — Return the last error number
curl_error — Return a string containing the last error for the current session
curl_escape — URL encodes the given string

answer Jun 27, 2014 by Mohit Sharma
Similar Questions
0 votes

I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP extension: I can't enable it.

I have installed following packages related to this issue: curl, libcurl3, libcurl3-gnutls, php5-curl.

I have in /etc/php5/mods-available/curl.ini

; configuration for php CURL module
; priority=20
extension=curl.so

I know that cURL extension is not enabled because I want to install Moodle and it complains about cURL extension. How can I solve this problem?

+3 votes

I have php 5.6.5 on centos 4.5 64bit. I am unable to install curl. And generate so file, I have tried all the possibilities.

./configure --with-curl=/root/php-5.6.5/ext/curl/libs --with-mysql --with-mysqli --with-apxs2=/usr/local/apache2/bin/apxs
...