Welcome to Category5.TV

Login for the best experience

Registered users are able to access restricted pages which guests can only dream about.

Check out the show

Local show times found here »

Viewer Login

Lost your password?

Become a registered viewer

Win prizes and access content exclusive to registered viewers. Registration is absolutely free, and no sales people will visit.

Register Now

Episode 235 — Beginner-to-Intermediate PHP Part 2: Counting with PHP

Watch Episode 471 Live:

Watch Episode 235 on your SmartPhone

Subscribe on YouTube
Category5 Technology TV Episode 235 5/5 with 1 vote


Originally aired on March 20th, 2012.

Starring: Robbie Ferguson and Hillary Rumball.

Previous Episode Next Episode

Chat Logs

This episode is sponsored in part by: Eco Alkalines, Garden Gate Farms and Cordery Electric.

Topics Covered:

  • Robbie Ferguson and Hillary Rumball present live from the Category5 studios in Barrie, Ontario.
  • Viewer Postcards from West Virginia and Melbourne Australia.
  • The new Mobile Site quicklink is m.cat5.tv
  • Robbie apologizes that many emails were not receive due to his focus on the upcoming release of the new Category5 TV web site.
  • Viewer Testimonials
  • Viewer Questions
  • Viewer Question: What's happening with the 9-hour video recording of the Category5 server build?
  • Viewer Question: Thank you for Category5 TV - it has helped me a lot with Linux and specifically, Ubuntu. Would you demonstrate at some point how to install programs on Linux that are in the bz2 format?
  • Searching for and installing applications with Synaptic Package Manager.
  • Viewer Comment: make usually works for me when installing applications in Linux.
  • Viewer Question: I have a small Atom system I used to use for audio production. Do you have any suggestions as to what I could do with it?
  • Viewer Question: I saw one of Eric's tweets and wanted to see him when he was playing at Doc Malones in Barrie, but couldn't travel the extra 4,459km in time for the show. Is there anywhere on the web where we can enjoy Eric's music?
  • Top Stories from the Category5.TV Newsroom
  • Feature: PHP Develpoment Part 2: Counting with PHP. http://demo.cat5.tv/012
  • Opening and closing PHP tags.
  • Setting up a string to hold your number.
  • Setting a static number value to a string in PHP.
  • Using basic algebraic addition to increment a number in PHP.
  • Creating our first PHP while() loop to automatically increment a number.
  • Using simplified PHP commands to cut down on needless code.
  • Using counting to flow through the data in an array which is sorted by numerical key.
  • Stylizing content output in a PHP while() loop.
  • Viewer Question: How would you make just the word "Title" bold, but leave the number not bold?
  • Using PHP's explode() function to separate a string or array key value by a particular character or set of characters.
  • Viewer Question: I have some experience with bash and perl programming in Linux, and Visual Basic in Windows. I can't quite grasp why you're adding the association ['file'] to an array. Why is that there?
  • Understanding the structure of an associative array. [demo.odt]

Links to Relevant Web Sites:

Related Episodes

Episode 234 – March 13, 2012

Robbie and Rachel teach you how to create a PHP array and use foreach() to loop through the array and output images to the browser window.


Episode 321 – November 12, 2013

Not a big fan of the new "start screen" on Windows 8? We'll show you how to return the traditional Start Menu to the latest version of Microsoft's desktop operating system.


Episode 58 – October 28, 2008

Taking a look at the Liquid Image under-water video camera mask with a built-in 5.0 megapixel digital camera and the evolution of new media into pocket-sized TVs.


Episode 349 – May 27, 2014

Our new music video "Nerdy" debuted. We also welcomed the head developer of Stunt Rally, Crystal Hammer onto the show to discuss his awesome racing game, which is available for free on Windows and Linux.


This episode is nearly 5 years old.
Some of the technologies highlighted may be obsolete or unavailable.