RE: [PHP] GPS Locator
http://www.phpclasses.org/browse/package/3507.html bastien Date: Tue, 4 Mar 2008 10:18:15 -0600 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] GPS Locator Howdy group! I know that this is not a PHP question (but it will work with a PHP app) but I thought I would ask the smartest group of people I know if they have any clue or would be familiar with a device I can use. I need to purchase a small GPS receiver/antenna that will plug into a USB port. Then I need to access the port (Ajax? Java?) while in my web application to deliver the coordinates to my PHP application. That will give me the physical location of the machine accessing the application. Any insight will be valuable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _
Re: [PHP] GPS Locator
Wintec makes a nice unit. http://www.wintec.com.tw/en/home.php But you are screwed if the system is in doors. I doubt you would get a GPS signal inside a building. Dan On Tue, 2008-03-04 at 10:18 -0600, Jay Blanchard wrote: Howdy group! I know that this is not a PHP question (but it will work with a PHP app) but I thought I would ask the smartest group of people I know if they have any clue or would be familiar with a device I can use. I need to purchase a small GPS receiver/antenna that will plug into a USB port. Then I need to access the port (Ajax? Java?) while in my web application to deliver the coordinates to my PHP application. That will give me the physical location of the machine accessing the application. Any insight will be valuable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GPS Locator
Almost for sure, browser security will not let you do this in a web browser. You'll probably have to write a custom desktop C application, or get the user to install some kind of glue widget... PEAR|PECL *might* have some USB stuff in a library you could use to write the PHP desktop widget and keep this on-topic, but I dunno... On Tue, March 4, 2008 10:18 am, Jay Blanchard wrote: Howdy group! I know that this is not a PHP question (but it will work with a PHP app) but I thought I would ask the smartest group of people I know if they have any clue or would be familiar with a device I can use. I need to purchase a small GPS receiver/antenna that will plug into a USB port. Then I need to access the port (Ajax? Java?) while in my web application to deliver the coordinates to my PHP application. That will give me the physical location of the machine accessing the application. Any insight will be valuable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GPS Locator
On Tue, 2008-03-04 at 11:42 -0600, Richard Lynch wrote: Almost for sure, browser security will not let you do this in a web browser. You'll probably have to write a custom desktop C application, or get the user to install some kind of glue widget... PEAR|PECL *might* have some USB stuff in a library you could use to write the PHP desktop widget and keep this on-topic, but I dunno... DIO should let you do it, but that extension is pretty buggy last I used it (OK like 5 years back with PHP4). What I did was got high end barcode scanners to scan directly into a db through a long running PHP script with it, so that should work just fine. That being said, though, something like a Winders COM object will probably be a better bet (I have never used COM objects before as I don't use Windows at all, ever) so correct me if I am wrong please! --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] GPS Locator
While this has deteriorated way off topic from PHP, I will just mention that I've purchased several GPS from these cats and had great luck: http://www.buygpsnow.com You *might* be able to write a custom PHP extension that you compile into PHP that can access the USB/Serial port as well. (and if you did got this route, which would be the most beneficial to the PHP community, I hope you would FOSS the extension so other's could use it perhaps) http://devzone.zend.com/node/view/id/1021 Secondly, maybe you could have a little daemon written that simply spits out the coordinates (lat/long/altitude/etc.) to a socket or something, and then via PHP's socket functions you could continually read that in. Alternatively, perhaps JAVA will also let you access hardware layers if you're on a non Microsoft platform (which is generally the case for PHP users). Lastly, you could certainly do some low level hardware I/O with Ruby and then perhaps use Rails for the web portion. Chalk this all under the best tool for the job category, in this case I doubt PHP is. Daevid. Remember, when coding, php.net and google are friends. Everyone else hates you. It is not personal, it's just a fact. --Stephen Johnson (12/03/07) -Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 9:46 AM To: [EMAIL PROTECTED] Cc: Jay Blanchard; [php] PHP General List Subject: Re: [PHP] GPS Locator On Tue, 2008-03-04 at 11:42 -0600, Richard Lynch wrote: Almost for sure, browser security will not let you do this in a web browser. You'll probably have to write a custom desktop C application, or get the user to install some kind of glue widget... PEAR|PECL *might* have some USB stuff in a library you could use to write the PHP desktop widget and keep this on-topic, but I dunno... DIO should let you do it, but that extension is pretty buggy last I used it (OK like 5 years back with PHP4). What I did was got high end barcode scanners to scan directly into a db through a long running PHP script with it, so that should work just fine. That being said, though, something like a Winders COM object will probably be a better bet (I have never used COM objects before as I don't use Windows at all, ever) so correct me if I am wrong please! --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php