Ah HA!! I figured it out on my own. Below is a link to a simple counter that is very similar to what I was trying to do, and a link to a txt file with the code in it. Example: http://emac.heliohos...buffer_test.php Code: http://emac.heliohos...buffer_test.txt I'll leave this here for anyone else who happens to have this same problem and searches the forums for a solution. It's funny how you can overlook something so minuscule and then spend HOURS trying to get the stupid script to work.