CHAPTER 12
image
Diverse Solutions
A number of recipes didn’t quite fit into any of the categories of the other chapters. So here are the final 10 PHP recipes, which, as the chapter title suggests, offer diverse solutions to a variety of programming problems, including geo-location, “bot” detection, data about books, word and spelling functions, language translation, rounded table borders, and Bing Maps.
image
image GetCountryFromIP()
Knowing which country a web ...

Get Web Developer's Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.