$host='openfire.nimbuzz.com'; $port='5222'; $user=$_POST['username']; $resource='xmpphp'; $server='nimbuzz.com'; $password=$_POST['password']; $to=$_POST['target']; $jumlah=$_POST['jumlah']; $body=$_POST['textplud']; // activate full error reporting //error_reporting(E_ALL & E_STRICT); require_once 'XMPPHP/Log.php'; include 'XMPPHP/XMPP.php'; #Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports #If this doesn't work, are you running 64-bit PHP with <> $conn = new XMPPHP_XMPP($host, $port, $user, $password, $resource, $server, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); try { $conn->connect(); $conn->processUntil('session_start'); $conn->presence(); for ($i = 1; $i <=$jumlah; $i++) { $conn->message($to, $body); } $conn->disconnect(); } catch(XMPPHP_Exception $e) { die($e->getMessage()); } echo "$_POST[textplud], $_POST[target]"; ?>