News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Where on Earth are You?
February 02, 2012 @ 08:52:54

In PHPMaster.com's latest tutorial Lukas White introduces you to using the Yahoo "Placemaker" web service to geographically locate a place from a free-form text string. The results include "place details" like the type of the location, latitude, longitude and how confident they are in their match.

The challenge then is to do two things: work out what place you could be talking about, disambiguate if necessary, and then identify exactly where on Earth that is. That's what I'll show you how to do in this article; by using a freely available web service, we'll write a simple program to ask users where they are (and ask them to clarify if necessary) before identifying their responses in concrete terms.

He shows how to make a request to the Placemaker web service, passing it a string coming from the user, to be located. The POST request contains a few pieces of data including an application ID , your desired output type and the language you're using for the input. His example code uses curl to make the request and handles it (the XML response at least) with a call to simplexml_load_string.

0 comments voice your opinion now!
where geolocation yahoo placemaker webservice api tutorial


Brandon Savage's Blog:
Hitting the Database Less Quick and Dirty Strategies for Database Efficiency
November 17, 2008 @ 11:04:24

In this new post to his blog, Brandon Savage looks at a few methods you can use to help reduce the overhead connecting to the database can cause.

Below are a list of my top five quick-and-dirty strategies for improving database performance in web applications. These suggestions are culled from recent experience and mixed with some ideas that I've implemented in my own code. They're not high level, but they are something we need consistent reminders about.

Here's the short version of the list:

  • Try caching
  • Reduce the number of queries that run
  • Use indexes
  • Optimize data usage
  • Avoid functions in WHERE statements

You'll have to check out his post for the full versions, though.

0 comments voice your opinion now!
strategy database efficiency tip list cache index optimize where


Robert Peake's Blog:
Where is PHP Going?
January 02, 2006 @ 07:19:27

Robert Peake has a new post today with a brief look at where PHP has come from and some of his opinions on the future of PHP in 2006.

We saw the release of PHP 5.1, the renaming of the CSV trunk to 6.0 (in attempts to beat Perl to the punch, apparently), massive security concerns raised by applications ranging from phpBB to Mambo, Zend's numerous partnerships and announcement of the Zend framework, great improvements to Pear, more conferences, more enthusiasm, more realization from the enterprise that PHP is where web application development is headed.

So, where is PHP going from here?

He predicts that the increased push Zend is making for the framework will continue to help improve PHP's image, especially with some of the hurdles PHP has to overcome (including security issues and getting past other lingering problems from PHP's past).

0 comments voice your opinion now!
where going look back future zend where going look back future zend



Community Events





Don't see your event here?
Let us know!


voicesoftheelephpant version conference opinion tool podcast laravel interview symfony framework community language artisanfiles introduction list security series library release composer

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