Sample PHP server code for receiving Btraced GPS

Forum / topics about Btraced protocol and webservice (uploading gps data) Also Btraced sample code.

Re: Sample PHP server code for receiving Btraced GPS

Postby leylander » Fri Apr 18, 2014 3:09 am

For some strange reason, I can't get my android phone to work with the php sample.

I have used this for a very long time, I have only moved over to android from iphone in the last week and copied all my settings directly over (password, server url, username etc.) and still can't get it to work.

My wife's iphone still works fine - I don't understand it.

I even re-downloaded the upload.php again, and again to try to get it working - but still no dice.

I keep getting "cant load XML".

The database if/then statement is passed in the code without issue and I am beginning to suspect that there really isn't an XML being past to the PHP page.

Is there any way to see what the client is passing up to the server?
leylander
 
Posts: 1
Joined: Fri Apr 18, 2014 2:46 am

Re: Sample PHP server code for receiving Btraced GPS

Postby ley » Sat Nov 01, 2014 12:57 pm

I have the same problem...who has the good answer
ley
 
Posts: 1
Joined: Sat Nov 01, 2014 12:55 pm

Re: Sample PHP server code for receiving Btraced GPS

Postby kylix » Sun Oct 23, 2016 6:39 pm

The problem seems to be related to this line:

if ($xml == false) {

I removed the if-else condition and now the trip details are correctly inserted into the DB.
kylix
 
Posts: 1
Joined: Sun Oct 23, 2016 5:21 pm

Previous

Return to Btraced Webservice Protocol And Sample code etc.

Who is online

Users browsing this forum: No registered users and 1 guest

cron