News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Hasin Hayder's Blog:
WorldTimeEngine - How about making your own in PHP?
0 comments :: posted Monday March 10, 2008 @ 11:17:00
voice your opinion now!

Hasin Hayder has posted an example of a "world time search" he's worked up that uses the geonames.org and Yahoo! developer APIs to pin down the time at any given location.

I recently came by this site WorldTimeEngine where users can search the local time of any place using the name, street address or just latitude and longitude. Since that time I was thinking how easily you can make your own. As long there are some good people over there (For Geocoding API) - its a not a big deal, you know?

His script pulls the location of the place (latitude/longitude) from the Yahoo! geocoding API and passes that back into the geonames web service to get the local time. The result is an array with the lat/long, address you submitted and the time output in a standard string.

tagged with: world time engine example yahoo api webservice geonames


NewsForge:
Real world control from a Web page
0 comments :: posted Tuesday May 23, 2006 @ 07:20:11
voice your opinion now!

If you've ever wanted yout scripts to do something more "outside the box" and out in the real world, you might want to check out this new tutorial from NewsForge for a good start.

In "Acquiring data from the physical world" we examined how to use a microcontroller to turn physical events (such as reading a switch) into data and send that data to a Linux box via the serial line. With this capability you can do things like counting people passing through a gate or recording how the temperature changes over time in a factory process. You can then send the data to a Web page. In this article, we'll do it in reverse -- from a Web form, instruct a microcontroller to perform some actions

The concept's pretty simple - the form they build submits back to the page and writes the input out to a file. This file is then read by the controller for the LED they have connected and, with the proper input, will turn it on and off. The code for the PHP/web side of things is included, but it might take a little work to get the rest of the hardware interfaced (as the author saw as well).

tagged with: php real world control web page microcontroller led light php real world control web page microcontroller led light


book developer zend conference code ajax release application releases PEAR framework security mysql zendframework database cakephp package PHP5 job pecl

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework