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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.