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?
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.