Do I have curl installed?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Do I have curl installed?

Post by voltrader »

The error "Call to undefined function: xmldoc()" indicates that curl is not installed, but when I typed in curl -V at the command line I received this:

curl 7.10.6 (i386-redhat-linux-gny) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4

Does this mean that it's installed but just diabled?

How would I enable it in php.ini?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

uncomment the line for the cURL library.
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

Thanks burrito. I don't have it commented or uncommented in my php.ini

Would you happen to have the php.ini command for it?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Curl ? According to PHP Manual, xmldoc is the old function and should be replaced with domxml_open_mem()
Note: This extension is no longer marked experimental. It will, however, never be released with PHP 5, and will only be distributed with PHP 4. If you need DOM XML support with PHP 5 you can use the DOM extension. This domxml extension is not compatible with the DOM extension.
You'll need GNOME XML library and libxslt library
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

a snippet from my php.ini file this is **note the uncommented cURL extension you should:

Code: Select all

;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Is the error "Call to undefined function: xmldoc()" a result of Curl not being installed ?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

anjanesh wrote:Is the error "Call to undefined function: xmldoc()" a result of Curl not being installed ?
probably not 8O
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

I recompiled PHP with CURL, CURL SSL and Open SSL via WHM and checked phpinfo. Curl is not enabled.

I then tried changing xmldoc() to domxml_open_doc() but still receive the call to undefined function error.

What else should I check?
Post Reply