TextFile Class for PHP
The following class is plays a big part in the framework I use for each of my web sites. It wraps around PHP’s default functions for handling files. It is specifically made to deal with text files. Its main feature is to create separate states for dealing with text files–a file starts out as unopened, can then be opened, closed, and deleted. You can download it here, or click “Read More” for some documentation. Read more
Twitter Trending Topics History
I became really curious about the trending topics feature on Twitter. It would be very useful to actually record which trends make it to the top 10 list, and for how long they stay in that list. So I decided to find out. I wrote a script that records what the top 10 trends are each minute, noting when a topic falls off the list and when new topics emerge. The results are pretty interesting.
