php SDK not connecting with standalone backendless

Since we have created a backendless Standalone, initially the php sdk would be doing the connection from our webserver to our BE server. The Webserver does not connect with the simple setup we added from your php quickstart quide: https://backendless.com/mobile-developers/quick-start-guide-for-php/

This error occurred beforehand, and I worked around with the javascript SDK without any hiccups.

Now that we are revisiting this, we are fully opting for the php sdk but I am still running into the same problem when trying to add a user to our app : error 2002Version is disabled or provided wrong application info (application id or secret key)

the keys are the application ID and the rest ID. Any points in the right direction would be great.

Hello!

Use Business Logic secret key instead of REST for php client.
best regards,
Alex

I actually don’t see where this key is in the backendless standalone system :\

I’m sorry, I meant “Code runner secret key”. You can find it on Manage -> App settings tab.

I probably should have mentioned I tried that key already after the REST one didn’t work, Still getting the same error again using the code runner key. Getting the same error on a newly created app as well.

Try to call “Backendless->setUrl( “http://<your-server-ip-here>” )” method before calling “initApp”.

Ill try that, I see somewhere in the error log this might be related??

• dashboard/ecommerce/pages/backendless/src/lib/RequestBuilder.php:41 backendless\lib\RequestBuilder::doRequestByUrl(‘https://api.backendless.com/v2/users/register’,array(‘email’=>‘michael@backendless.com’,‘password’=>‘my_super_secret_password’),'POST’)

As I see from this request, url is https://api.backendless.com, which is not correct for standalone.

Anyway, it’s not related to error 2002, which you receive now.

Ok, I have added /api after my url re-declare and am using the REST key.

Backendless::setUrl(“http://url-w/-port/api”);

user was added into table so I will go from here. Thank you.