Archive for the ‘PHP’ Category

  • Parse Weather Forecast Data (from the NDFD) in PHP

    In 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 National Digital […]

    Published: February 19th, 2009 by:
  • Basic PHP/MySQL Actions

    Using databases to store user identification, image information, and so much more for dynamic websites is the easiest way to ease maintenance. MySQL is the most popular choice of database, and in this article, I’ll explain the most basic functions: connecting and using a MySQL database and its respective tables.

    Published: February 17th, 2009 by:
  • Create Dynamic Banner Ads for Blogs & News Sites

    When 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, I’m going […]

    Published: February 12th, 2009 by:
  • Explosive PHP Application

    Sometimes a complex PHP-built website can become tedious when dealing with minor changes to the template and HTML markup. Changing, for instance, a set of links (navigation) or other integral parts of a website, can become quite the lengthy process. In this article, I’ll share a technique that I sometimes use to make something as simple as a website navigation a little more automated using an explosive function.

    Published: February 10th, 2009 by:
  • Akismet Class/Library for Codeigniter

    Using 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 usage examples.

    Published: February 5th, 2009 by:
  • Dynamically Converting Text to an Image

    As CSS expands, so does web design as a whole, but where it still lacks (and most likely will always lack) is in the area of fonts. Depending on the user’s home computer and the actions he/she has taken on it, there are different fonts inherently available. In this article, however, we will talk about bypassing the user’s system and use the fonts you would like, via PHP and the GD library.

    Published: February 5th, 2009 by:
  • Editing Images – Resizing, Cropping, and more!

    We’ve seen the graphics PHP can create for you, but how extensive is PHP’s ability to edit preexisiting images? In this article, I will explore some common functions that image editing software provides, but I’ll only use PHP.  We’ll focus mainly on cropping, resizing, flipping, and adding some effects to photos.

    Published: January 29th, 2009 by:
  • Get the Lat/Lon Location of Major US Cities

    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.

    Published: January 27th, 2009 by:
  • Omit the PHP Closing Tag

    This 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.

    Published: January 27th, 2009 by:
  • Understanding Decision Structures

    Decision structures form the basis of all programming languages; just as they sound, these constructs move the program down a certain path depending on variables which are checked.  This gives a program functionality and the ability to handle different input and analyze the data within the script.

    Published: January 22nd, 2009 by: