Category Archives: PHP

07/08/2009

Basic word wrapping with Imagick

Imagick is a great extension for PHP that allows you to create and manipulate images. It is much better than GD. I wanted to draw some word wrapped text, but the unfortunate thing with Imagick is that you must use … Continue reading

2 Comments


04/13/2009

Proof-of-concept Shoutcast radio server in PHP

In 2005 I toyed with a Shoutcast server written in only PHP (and utilizing an external encoder). It didn’t get very far and the code became a mess, but that’s not to say that it wasn’t able to stream music. … Continue reading

2 Comments


03/31/2009

Steam ID to Steam community ID

The following PHP code converts a Steam ID (STEAM_X:Y:Z) into a steam community ID. It has been sitting on my desktop for a while now, and I need to do something with it. <?php function steamID2CommunityID($steam_id) {     $steam_id … Continue reading

Post a comment or response


10/20/2008

Future proofing strings in PHP

For many characters, UTF-8 encodes characters with multiple bytes because one single byte cannot represent thousands of characters. However, because PHP presently does not support Unicode, the language will consider each byte its own character. If you’ve ever worked with … Continue reading

Post a comment or response


10/01/2008

IntelligentCensor’s nomination

My IntelligentCensor library got nominated for an innovation award on PHPClasses.org. That’s my fourth nomination (out of seven submitted classes), although I still haven’t received first place (my submitted classes tend to not have a mainstream usage). What does it … Continue reading

Post a comment or response