Hi There,
Im a little bi lost and not sure where to start with this one, ive got a small gps receiver which im
polling over a serial connection, each time i poll the device i get a load of rubbish back like this...
Code: $GPRMC,223450.000,A,5310.5785,N,00226.2042,W,0.0,25.8,291109,,,A*49
$GPGGA,223450.000,5310.5785,N,00226.2042,W,1,06,2.1,22.3,M,59.1,M,,0000*7D
$GPVTG,25.8,T,,M,0.0,N,0.0,K,A*32
$PMST200,00,204*1E
$PMST200,00,204*1E
$PMST200,00,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
$GPGLL,5310.5785,N,00226.2042,W,223450.00,A,A*73
$GPGSA,A,3,02,04,05,07,08,10,,,,,,,4.5,2.1,4.0*39
$PMST200,??,204*1E
$PMST200,??,204*1E
$PMST200,??,204*1E
As they are never ever in the same order i cant really use reg_exp to get what i want, basically im
trying to capture the following and then use split to break them down further and insert into a DB
Code: $GPRMC,223450.000,A,5310.5785,N,00226.2042,W,0.0,25.8,291109,,,A*49
how can i just get it to extract that line and nothing else unless i ask it to????
the output from the serial devic come is extract using this
Code: $read = $serial->readPort();
than i just echo read etc etc and get my text which is further up, any ones help
or suggestions would be brill...
thanks
Calling All PHPFREAKS Blackberry Users
Are you a member of PHPFreaks and have a blackberry? Well RIM just recently released Blackberry Messenger 5.0! What does this mean for you, the user? It means that you have all sorts of cool new
Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.a)create an html page to enter a row number (1-6) in a textbox to choose a list of student records.b)
Create comparison matrix?
I want to create a comparison script for forum software and was wondering is there any tutorial or basic script anyone can give me?
Code working in IE but not FireFox
I created a dynamic navigation list for my website based off of a table in my database. The code is working perfectly in IE (I have version 8 on this computer) But it wont work on Firefox. I'm not
PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page will use code to pull information from a database and display it on the page in a formatted way.Code:
MySQL noob question
hi guysI have a simple mysql table set up, along the lines of Col 1 - Col 2 - Date_last_updated--------------------------------Som - Some - 06/11/2009 23:23:23Bob - Bob - 06/11/2009 23:30:30and so
'210010106140040100' == '210010106140040101'
Debugging this simple line of a PHP scriptCode: if($a == $b){ } I've found that with value of$a = '210010106140040100' (type = string)$b = '210010106140040101' (type = string)the result of the
Multiple if statements
Ok so seems basic but for some reason I'm not doing it right. What I want is to be able to have 2 separate if statements in the same php document. What I've done is this:Code: if ($p1=='on' AND
Custom list order
Hi there,I have checked this tutorial and it's great till the point where I want to display my data by a variable. Let's say that I have in my table these fields:- id- name- usort- categoryI want to
Converting RGB values to HEX
Code: <?PHP$file_handle = fopen("colors/rgb.csv", "r");while (!feof($file_handle) ) {$line_of_text = fgetcsv($file_handle, 1024);print $line_of_text[2] . $line_of_text[3] .