Snippets
Content Negotiator
Content Negotiator is a PHP class written by BluHelix Studios that can be used to negotiate the content type of a page based on the user agent. The script can decide to output the same page as either XHTML or HTML based on the received HTTP request. The Content Negotiator class also scans the source code in the output buffer to translate code between HTML and XHTML so your page is perfect for the user agent every time!
Hamachi Status Classes
HamachiClient and HamachiList are PHP classes written by BluHelix Studios to monitor the status of LogMeIn Hamachi clients. HamachiClient checks the web status indicator to determine which clients are currently online. HamachiList can be used to generate a complete Hamachi friend’s list.
Shorten Text
Shorten Text is a PHP function written by BluHelix Studios that can intelligently crop a string of text to the desired character length. The function only counts characters outside of (X)HTML tags when calculating the string length and will never break a string in the middle of a word. The function’s main usefulness is its understanding of (X)HTML tags. The function will never crop a closing tag unless the opening tag has also been removed.