You are not logged in.
Hello.
I have this error: Call to undefined function curl_init...
In phpinfo() it says: ...'--with-curl=shared'...
"curl" package is installed.
"curl.so" in php.ini is uncommented.
"/usr/lib/libcurl.so" is in the system.
Why can't I use curl functions in php?
Last edited by Mr. Alex (2011-09-15 11:33:27)
Offline
When run from terminal, what does
php -m
print?
Be sure to include any warnings, such as trying to load .so files which it cannot find.
Offline
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/curl.so' - /usr/lib/php/modules/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
gettext
hash
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
pcntl
pcre
PDO
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
Offline
Well there's the problem. But I don't know why you don't have curl.so as it comes with the php package. You could try re-installing php and seeing if it appears. Alternatively you could compile it yourself and add the .so to the folder.
Offline
Offline
I updated php package and it now works. Thanks.
Offline
I had this same problem,and followed all these steps, but was still getting the Call to undefined function curl_init() in.. error.
This thread suggested a soft reboot. Did that and finally, the issue cleared up.
http://stackoverflow.com/questions/5320 … p-on-linux
Offline