Page 1 of 1

new accounts problem

PostPosted: Tue Sep 09, 2008 4:54 pm
by pokerisawesome
in your example I did exactly everything as you said...so when you try to register a new account it gives this error...

Fatal error: Call to undefined function curl_init() in C:\\practicesite\API.php on line 8

Re: new accounts problem

PostPosted: Tue Sep 09, 2008 5:13 pm
by Kent Briggs
pokerisawesome wrote:in your example I did exactly everything as you said...so when you try to register a new account it gives this error...

Fatal error: Call to undefined function curl_init() in C:\\practicesite\API.php on line 8


The curl functions are a PHP add-in (libcurl). If you're running PHP from a hosted web site, you may need to get your service provider to install that option in your PHP configuration.

Re: new accounts problem

PostPosted: Tue Sep 09, 2008 5:22 pm
by Kent Briggs
Also, if you're installing PHP locally using EasyPHP (http://sourceforge.net/projects/quickeasyphp/) all you have to do is right-click the EasyPHP icon in the sytem tray, select Configuration, PHP Extension, and then make sure php_curl is checked in the extension list.

Re: new accounts problem

PostPosted: Tue Sep 09, 2008 5:46 pm
by pokerisawesome
Thanks done...

Now whenever I fill all the fields in it does this...

Error: Password is incorrect
Click Back Button to correct.

Re: new accounts problem

PostPosted: Tue Sep 09, 2008 6:45 pm
by Kent Briggs
pokerisawesome wrote:Thanks done...

Now whenever I fill all the fields in it does this...

Error: Password is incorrect
Click Back Button to correct.


Check the API.php file and make sure the $pw variable matches your API password (and the $url variable matches your URL).