equiv PHP script: http://www.hawkee.com/snippet/5404/ Perhaps this might help people learning PHP who know mIRC?