In this article, learn how to fetch the latitude & longitude location of all major US cities. I’m going to provide you with a comprehensive list of almost 500 major US cities as well as the source, so you can get the updated list as city sizes change.
View Posts by Author
-
Get the Lat/Lon Location of Major US Cities
Published: January 27th, 2009 by: Andrew -
Omit the PHP Closing Tag
Published: January 27th, 2009 by: AndrewThis is just a simple tip that presents a simple proposition – stop closing your PHP tags. Why? I will explain in this article. Keep in mind that this idea / standard only applies to PHP files that are only for PHP – no HTML.
-
Sort Posts by Comment Count in Wordpress
Published: January 20th, 2009 by: AndrewI use this technique to show the most popular posts on our homepage, and although this isn’t a core feature in Wordpress, it’s not all that hard to do. All it takes is a little PHP and a single edit to one of your Wordpress template files.
-
Encrypting Password & Other Sensitive Information
Published: January 13th, 2009 by: AndrewEncrypting sensitive data is extremely important. You, as the webmaster or database administrator, needs to make sure that the data is safe, even if it falls in the wrong hands. In this article, I will show you how to use MD5 and SHA1 encryption in PHP.
-
Load RSS Feeds into PHP Arrays with lastRSS
Published: January 6th, 2009 by: AndrewRSS Feeds are a great way to keep up with the latest news and blog sites, but we can also use them to bring data into our PHP applications. In this article, I will show you how to load any RSS feed into variables that you can manage in PHP.
-
Locate the Nearest Radar Station and Display Radar Images
Published: January 2nd, 2009 by: AndrewIncluding up-to-date radar images on your website is easier than you might think. In this article, I am going to share where you can get radar images for free for US radar sites and even share some sample code that will fetch the closest radar site by lat/lon and display it on your website.
-
How to Get the Geographic Location of an IP Address
Published: December 26th, 2008 by: AndrewAn IP address used to mean nothing to us, other than where they are in the cyber world, but it is now possible to find out where they are in the real world, using databases that are freely available. In this article, I will disclose where you can get a free database that will [...]
-
How to Post Data and Fetch Remote Pages from PHP Scripts
Published: December 18th, 2008 by: AndrewThere are times where a PHP script needs to fetch the HTML from a remote page, or even post some data to a remote location. Learning how to use cURL or fsockopen() can be time consuming and unnecessary. There is a nice PHP class called Snoopy that can take care of all these [...]
-
5 Sources of Free Weather Data for your Site
Published: December 11th, 2008 by: AndrewThe weather has always fascinated me, and I actually almost became a meteorologist instead of a full-time entrepreneur. I recently had a project where I had to pull tons of weather data and display it on a website. It took tons of research to find what I was looking for, so I am [...]
-
Sending Data Between Pages
Published: December 4th, 2008 by: AndrewWhen a visitor navigates through a website, the server doesn’t know who you are from one page to the next. In other words, if you read this page, and then click on another article or link, the server can’t remember who you are! It is up to the developer to retain any data [...]


