Click here to Skip to main content
12,077,753 members (47,796 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: PHP
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
// 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 29-Jan-13 2:14am
Comments
Venkat_C6 29-Jan-13 8:08am
   
where the curl_multi_init() function is written??
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

that's what i am trying to find out
i am working in codeigniter
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

thanks i just checked the version is outdated
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web04 | 2.8.160212.1 | Last Updated 29 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100