Jump to content

Curl (Fatal Error)


phptestor

Recommended Posts

   

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.