Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Fatal error: Call to undefined function curl_multi_init() in C:\xampp\htdocs\masis\application\modules\Core\Model\DbTable\Tasks.php on line 467


the code is
PHP
// Set options
    $multi_handle = curl_multi_init();
    $curl_handle = curl_init();

    curl_setopt($curl_handle, CURLOPT_URL, $url);
    curl_setopt($curl_handle, CURLOPT_PORT, $port);
    curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Host: ' . $_SERVER['HTTP_HOST']));
Posted
Comments
Venkat_C6 29-Jan-13 8:08am    
where the curl_multi_init() function is written??

1. Validate that CUrl extension is installed. (You can use php_info() to get list of extensions)

2. If not - install
http://php.net/manual/en/curl.installation.php[^]

3. If exists - check if version is not outdated.
 
Share this answer
 
Call to undefined function curl_multi_init()
Error says all. Based on it, curl_multi_init() is not present in your context. Make sure that the function method is defined somewhere.
 
Share this answer
 
that's what i am trying to find out
i am working in codeigniter
 
Share this answer
 
thanks i just checked the version is outdated
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900