One of the biggest pet peeves I have when looking at (and unfortunately - working with) other people’s PHP code is the way they integrate their code into the HTML. Many people don’t take the time to organize, and they end up with a PHP & HTML mess. I believe that it is [...]
View Posts by Author
-
Separating the Application & Presentation and Alternative Syntax
Published: March 18th, 2009 by: Andrew -
More Examples with Parsing NDFD Data in PHP
Published: March 3rd, 2009 by: AndrewI covered how to Parse Weather Forecast Data (from the NDFD) in PHP in a previous article, but due to the amount of questions I received, I decided to show some more usage techniques and examples. In this article, I will cover the time-series option as well as some methods on how to make [...]
-
Parse Current Weather Conditions Data from the NWS in PHP
Published: February 26th, 2009 by: AndrewIn a previous article, I covered 5 Sources of Free Weather Data for your Site, but did not provide any actual code to use the data. Last week, I covered source #1 and showed how to Parse Weather Forecast Data (from the NDFD) in PHP. For this article, I will show how to [...]
-
Parse Weather Forecast Data (from the NDFD) in PHP
Published: February 19th, 2009 by: AndrewIn a previous article, I covered 5 Sources of Free Weather Data for your Site, but did not provide any actual code to use the data. Starting with this article, I will post instructions on how to handle this data as well as sample code. For this article, we will start with the [...]
-
Create Dynamic Banner Ads for Blogs & News Sites
Published: February 12th, 2009 by: AndrewWhen you visit a site, their usual advertisers might catch your eye once or twice, but after that, you forget it’s there. Designing a banner ad that automatically updates with information such as current sales or latest blog posts is a great way to get repeat clicks and return visitors. In this article, [...]
-
Akismet Class/Library for Codeigniter
Published: February 5th, 2009 by: AndrewUsing Akismet to block spam on your Wordpress blog is a no-brainer, but what about your custom blog or article site? It is possible to extend the Akismet anti-spam service to your own custom website. In this article, you will find a fully functional Akismet library for CodeIgniter as well as instructions and [...]
-
Get the Lat/Lon Location of Major US Cities
Published: January 27th, 2009 by: AndrewIn 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.
-
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.


