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); ?> ------------------------------------------------------------- Quote Link to comment 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(); ?> Quote Link to comment 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.. 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.