http://cz2.php.net/fsockopen/stačí?edit: tady už máš hotový celý class..http://www.phpclasses.org/browse/file/7537.html