Click here to Skip to main content
Rate this: bad
good
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 1:14am
Comments
Venkat_C6 at 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 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  
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  

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

  Print Answers RSS
0 OriginalGriff 254
1 Nirav Prabtani 223
2 Sergey Alexandrovich Kryukov 209
3 _Amy 165
4 Richard MacCutchan 135
0 OriginalGriff 7,799
1 Sergey Alexandrovich Kryukov 6,966
2 Maciej Los 3,994
3 Peter Leow 3,708
4 CHill60 2,742


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 29 Jan 2013
Copyright © CodeProject, 1999-2014
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