Reputation: 31
Currently am working with my website to optimize it for search engines.
I'm getting the following error:
[home] [stats] [search website] [index website] [create tables] [configure]
--------------------------------------------------------------------------------
No pages indexed.
Index website
Fatal error: Call to undefined function curl_init() in E:\wamp\www\SEO\distribution\api\api.php on line 20
I don't know how to resolve the problem. Do I need to install the curl lib function, or something else? How can I resolve this error?
Upvotes: 0
Views: 158
Reputation: 44396
url_init()
function is a part of cURL extension which is not available by default in PHP.
You have to install that extension. If you're not a server administrator then you probably can't do anything but ask him/her to do that.
However there is a workaround. cURL is just a abstract layer over HTTP protocol. If you know how HTTP protocol works you can write your own cURL using fsockopen() function
.
Upvotes: 2
Reputation: 30922
Its telling you that curl_init() is undefined so it'll need figured out why. You'd probably want a PHP coder to look at this for you.
Upvotes: 0
Reputation: 798
Is curl is installed on your server? Use php_info() function or check directly with your host provider.
Upvotes: 0
Reputation: 132051
Install and enable curl http://www.php.net/manual/en/curl.installation.php
Upvotes: 3