phptestor Posted July 27, 2007 Share Posted July 27, 2007 im trying to make a php site.. that has the ability to make accounts, delete database, remove accounts, etc.. for an online game and i followed this entire guide on fixing the Curl -.- http://us2.php.net/curl even though i did all that i still get this error Fatal error: Call to undefined function curl_init() in C:***************.php on line 20 wondering if someone can find the error in my script? ------------------------------------------------------------- <?php $sql = "foo'; DELETE KAL_DB.dbo.Player --"; $data = array( 'accname' => $sql, 'accpass1' => 'foobar', 'accpass2' => 'foobar', 'readrules' => true ); $ch = curl_init("localhost/index.php?site=register&do=reg"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_POST,true); curl_setopt($ch, CURLOPT_POSTFIELDS,$data); curl_exec($ch); curl_close($ch); ?> ------------------------------------------------------------- Link to comment https://forums.phpfreaks.com/topic/61957-curl-fatal-error/ Share on other sites More sharing options...
btherl Posted July 27, 2007 Share Posted July 27, 2007 Are you running this script on a web host or your own pc? Try running this script, and see if it says that curl is installed: <?php phpinfo(); ?> Link to comment https://forums.phpfreaks.com/topic/61957-curl-fatal-error/#findComment-308538 Share on other sites More sharing options...
phptestor Posted July 27, 2007 Author Share Posted July 27, 2007 hmm? website of course, xampp to be exact.. Link to comment https://forums.phpfreaks.com/topic/61957-curl-fatal-error/#findComment-308563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.