Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've enabled curl in PHP.INI en restarted my machine and Apache.

extension=php_curl.dll

Still I get the following error in my php script:

Call to undefined function curl_init()

I'm running XAMP on Windows XP Pro. Any thoughts?

php_curl.dll is in C:\Program Files\xampp\php\ext extension_dir = "C:\Program Files\xampp\php\ext\"

share|improve this question
    
Is cURL shown in the phpinfo output? –  Pierre-Yves Gillier Jan 5 '10 at 16:46

1 Answer 1

up vote 1 down vote accepted

The libeay32.dll and ssleay.dll files in your PHP directory must be accessible from somewhere in your PATH variable for cURL to work with Apache. The easiest way to achieve this is to add your PHP directory to your PATH environment variable.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.