Page 2 of 2

Re: Sample PHP server code for receiving Btraced GPS

PostPosted: Fri Apr 18, 2014 3:09 am
by leylander
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?

Re: Sample PHP server code for receiving Btraced GPS

PostPosted: Sat Nov 01, 2014 12:57 pm
by ley
I have the same problem...who has the good answer

Re: Sample PHP server code for receiving Btraced GPS

PostPosted: Sun Oct 23, 2016 6:39 pm
by kylix
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.