/ Published in: PHP
Taken from : http://www.phpfreechat.net/forum/viewtopic.php?pid=7587
See also this class : http://www.phpbuilder.com/snippet/download.php?type=snippet&id=2205
See also this class : http://www.phpbuilder.com/snippet/download.php?type=snippet&id=2205