If you’ve ever explored sorting tables, you might’ve come across a nice little library called sorttable. It’s functional, lightweight, and easy to add to just about any table. If you’ve got a table with alternating colors for the rows, this little library will mess that up for you. From the looks of the results in… Read more »
Posts Tagged: programming
Log File Location and PID File Location Settings for the PHP System_Daemon PEAR Class
If you’re reading this blog post, then chances are, you’ve discovered the wonderful PEAR package called System_Daemon. This well-done package offers the ability to turn any PHP script into a daemon and does a good job of making sure there aren’t memory leaks or problems along the way. There’s a great demo of the package… Read more »
Creating a Table of Contents from HTML in PHP with DOMDocument and No Regex
While hanging out in the Freenode ##php channel, a user came along asking how to create a table of contents from an HTML string by extracting the header elements. Many suggestions came through including using Regex or a jQuery solution. Using Regex to parse HTML in PHP is a bad idea and can get quite… Read more »