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
Material Issuing for receiving batch
Dear All experts in MM/ PP,
Merger of 6 sister companies under one flagship company after go live
Dear Experts,
getting most records by count
Code: [Select]<?php $connect = mysql_connect("localhost","damgears_evil","damgears"); mysql_select_db("damgears_evil"); $queryreg =
Hom to make one url to open together with another url
I have a chat, which i want to be opened, as soon as the users login to the site. As it is now, when the user login, he's redirected to home.php and have to press the CHAT button to enter the chatThe
MYSQL gen help
This is my Mysql gen. can anyone tell me why this echosMID(networkset.networkid, 3, 3) AS "MNC" SELECT FROM scan JOIN gps ON scan.gpsid = gps.gpsid JOIN gsmscanset ON scan.scanid =
returning data from an ssh2_exec()
here's what i got.$conn = ssh2_connect($this->_host); ssh2_auth_password($conn,$this->_user,$this->_pass)or die("Cannot Connect"); //build command line to include
generate seo frienly url from a text like wordpress
Convert: "åäö" to "aao", "space" to "-", "!?" to "nothing", and all to lower case.function MakeSeo($string){ ???}i want a php
Greek characters in php
Hi,I'm making a script and I m using for first time greek characters.I started to write a simple drop down menu that loads some city names from the database. The names are in Greek in the database and
generating all possible random letters
hi'how can i randomize the letters a,b,c,d,e all possible ways, and i want to print the resultand unique from each?thanx
Displaying Site Logo/Icon on a Title tag
really need some help out here. I want to insert a Logo/Icon just like the one close to the "PHP Freaks" title bar. But kinda finding it difficult to do that. Don't know if to echo the image