2

What is the name space of curl in symfony2? It gives Fatal error: Call to undefined function curl_init()

3 Answers 3

5

It would seem that curl support is not enabled - check your php.ini

Sign up to request clarification or add additional context in comments.

Comments

2

PHP invoke CURL with simple functions. If you have enabled the 'php_curl' extension in your php.ini, you should have no trouble invoking curl normally. But for certain configurations of PHP (I don't remember what) I was advised to use backslash before [like \curl_init();]

Comments

0

There are two php.ini files for bowser and for console. Make sure that you have enabled php_curl in both. This happened to me when developing a console script. This must work for sure.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.