I'm not quite sure how Jabber works compared to any other protocol, but I believe that you will need to make a socket connection to the server, for example:
$endpoint = "SERVER";
$fp = fopen( $endpoint, "r" ) or die();
while ( ! feof( $fp )){
print fgets( $fp, 1024 );
}
while() , PHP script. , while(), , while(), .