0

I am trying to use curl on my ubuntu 11.1 server.

In my script, I have the following:

$ch = curl_init();

But when I run the script, I get the following error message:

Fatal error: Call to undefined function curl_init() 

I thought that Curl was not installed, but when I do the following:

 sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

I get the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
curl is already the newest version.
libcurl3 is already the newest version.

(I did not do the update). Any ideas?

Phil
  • 157,677
  • 23
  • 242
  • 245
EastsideDev
  • 6,257
  • 9
  • 59
  • 116

1 Answers1

0

visit the following url. https://askubuntu.com/questions/9293/how-do-i-install-curl-in-php5

also check the extenions by phpinfo()

Community
  • 1
  • 1
user2990252
  • 181
  • 1
  • 1
  • 9
  • In my question, I already mentioned that the installer told me that I have curl installed and it's the latest version – EastsideDev May 21 '14 at 06:10