Here is a quick and dirty function that I have used for a couple of years now, complete with comments;
-snip- Nice piece of code -- thanks for providing that. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php