 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPMaster.com: Targeted Geolocation with Geonames
by Chris Cornutt December 13, 2011 @ 12:10:02
New on PHPMaster.com there's a tutorial from Lukas White about targeting users using geolocation based on the Geonames web service and a latitude/longitude. His example makes a call to find the closest "place" to the given coordinates.
Location-aware applications rely on being able to locate where you are, and this is what geolocation is all about. After all, once the application knows your location, it can go on to find the nearest store, guide you through the appropriate route to a destination, or target relevant advertisements to you. Geolocation, then, is simply the mechanism for identifying your geographical location.
He mentions two challenges associated with geolocation - finding where someone is and describing the location. With Geonames, he shows how to call the service's "findNearbyPlaceName" method to find the closest "place" to a given latitude/longitude combination. Included is a bit of sample PHP to connect to the service and Javascript to request the user's current location.
voice your opinion now!
geolocation tutorial geonames webservice json location
LifeHacker.com: Synchronize Google Voice with Your GPS Location
by Chris Cornutt March 01, 2010 @ 13:28:49
On LifeHacker.com there's a tutorial on how you can use a simple PHP script running on a remote server to tell Google Voice which is the best phone to forward your calls to. The method requires the use of an Android phone, though.
I figure the only way Google Voice could be improved is if it magically knew where I am and made my phones ring accordingly'"so that's exactly what I made it do. You can, too, with an Android phone, the Locale app, and a web server. The overall goal: have Google Voice know which phones to ring, based on your current location or situation.
You'll need a Google Voice account (obviously), some software for your phone and a remote web server running PHP 5 (with cURL and json functionality). You can then use the PHP script by passing parameters as to which phones to turn off and on and use the Locale tool to create the "situations" where it needs to make the switch.
voice your opinion now!
syncronize googlevoice gps location tutorial locate
PHPClasses.org: PHP User Group Listing (and Rank)
by Chris Cornutt January 14, 2010 @ 10:09:41
On the PHPClasses.org blog today there's a new post from Manuel Lemos looking at user groups - how to keep them alive and what you can do to rekindle a faltering group.
PHP was spread by its users. Over time PHP user groups have been doing an extraordinary job in promoting the PHP communities everywhere, so local PHP users get more support in their local idiom and progress faster in their careers as PHP developers. Many PHP user groups organize meetings and events that help PHP users learning more and make valuable contacts that they often use to get in touch with more experienced and helpful PHP developers.
He mentions a big challenge for keeping groups alive - leadership shifts and dwindling membership - and something the PHPClasses site offers to help advertize groups all around the world. If you're looking for a group in your area (most of the coverage seems outside of the US right now) try their user group directory.
voice your opinion now!
usergroup list location
Zend Developer Zone: Location, Location, Location
by Chris Cornutt June 02, 2009 @ 09:39:03
In a new tutorial on the Zend Developer Zone, Sam reminds us that, sometimes, it's all about "Location, Location, Location" with Zend Framework applications.
I was having a conversation with a client recently on the topic of best practices. He asked me: "Where should I put the Zend Framework source code?" This is an excellent question that can not only be applied to Zend Framework, but to similar frameworks also. The question has in fact two answers in my opinion, which answer is right for you depends on how you answer this question.
He answers the question by asking a question of his own - is ZF part of your application or of your environment? There's (basically) two different paths to follow here and that question is the branching point. If its in the app, he recommends keeping it closely tied and in the "/library" of the app. If not, then it's recommended to place it out where multiple applications could get to it.
There's also third option, hybrid of the two that allows you to both keep the application split off on the backend but closely tied in deployment.
voice your opinion now!
library zendframework location
Web Developement Blog: Curl Location redirect while open_basedir is set
by Chris Cornutt February 04, 2009 @ 12:06:09
Recently on the Web Developement Blog, Olaf showed how to do a Location redirect with cURL while open_basedir is set.
If you need to follow redirects within your php code using Curl and the open_basedir is set you came into some trouble. If you disable this directive all your directories with a 777 permission are not safe (if one or more website on the same server has some security issues). If you don't have additional protections you should NEVER disable the open_basedir directive (at least if you're using 3rd party applications).
He writes up a simple cURL-based link checker to see which of the URLs in question would throw an error. He modifies it so that it checked the HTTP response code from the server and, if its a 200/302/301, you know things are okay and a shell_exec can be called to execute the file from that location.
voice your opinion now!
curl location redirect shellexec openbasedir tutorial
PHP-GTK Community Site: World map of PHP-GTK developers
by Chris Cornutt January 28, 2009 @ 07:55:33
The PHP-GTK Community site has launched a new service to help PHP-GTKers out there find out other developers that might be in their area - a world map (based on Google maps) of other PHP-GTK developers around the world.
I reviewed the coordinates given by existing members and noticed a good number had visibly inverted latitude and longitude; so I inverted them again to place them where it appeared to make more sense (are there really PHP-GTK devs in the middle of the pacific, or near the South pole ?). So you may want to double-check your coordinates to make sure the values are correct, because it's likely I've not found every error.
He's also asking for the Brasil PHP-GTK community to include their information in the map as well as a request for anyone out there that might want to make a "prettier" icon for showing the developers on the map.
voice your opinion now!
world map phpgtk developer location brasil latitude longitude
DevShed: Logging in PHP Applications
by Chris Cornutt December 08, 2008 @ 13:52:10
DevShed has posted a new tutorial today looking at one of the more useful tools a developer can add into an application - logging.
If there is no logging mechanism, then if there's a goof-up in a production environment, you have absolutely no idea what went wrong. The only thing which a support developer can do in this case is to reproduce the issue at the developer end, which sometimes work and sometimes don't.
The look at the types of logging (trace logs, audit logs and user logging/history) and create a simple class that allows flexibility for file location, priority and timstamping. Their script contains a writelog method that does all the work (including pushing it through the PEAR logging class).
voice your opinion now!
log tutorial pear trace audit history priority timestamp location
|
Community Events
Don't see your event here? Let us know!
|