thesnarkie Posted January 24, 2010 Report Share Posted January 24, 2010 Fatal error: Call to undefined function curl_init() in ***/upload2.php on line 77 $post_data = array('user' => $user, 'sid' => $sid, 'file' => @$file_name); $url = $config[$_POST['type']][$_POST['country']]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); 77 līnija ir $ch = curl_init(); Kāpēc tāds fatālais errors parādās? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 24, 2010 Report Share Posted January 24, 2010 Iespējams, php.ini nav iespējots šis php paplašinājums... rindiņai: ;extension=php_curl.dll būtu jāizskatās šādi: extension=php_curl.dll Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted January 24, 2010 Author Report Share Posted January 24, 2010 Ja tur vispār tādas rindiņas nav? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 24, 2010 Report Share Posted January 24, 2010 Pievieno :D http://php.net/manual/en/curl.installation.php Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted January 24, 2010 Author Report Share Posted January 24, 2010 (edited) Pievienoju to rindiņu ini failā, bet phpinfo() neko par curl neatradu pēc tam. Edited January 24, 2010 by thesnarkie Quote Link to comment Share on other sites More sharing options...
briedis Posted January 24, 2010 Report Share Posted January 24, 2010 Pievienoju to rindiņu ini failā, bet phpinfo() neko par curl neatradu pēc tam. Pārstartēji apachi? Izlasīji visu linkā, ko iedevu? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.