xmpphp

XMPPHP to Openfire

怎甘沉沦 提交于 2019-12-24 01:56:16
问题 (This is my first ever question so please excuse the noobness) I have a Ubuntu VPS from DigitalOcean that I have Openfire installed and running. I'm trying to use XMPPHP to send alerts but it doesn't send the message. My Code: include("../XMPPHP/XMPP.php"); $conn = new XMPPHP_XMPP('***.***.***.***', 5222, 'alert', 'password', 'xmpphp', '***.***.***.***', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); $conn->useEncryption(false); $conn->connect(); $conn->processUntil('session_start');

XMPPHP and Openfire

丶灬走出姿态 提交于 2019-12-23 06:57:41
问题 I'm a newbie to XMPP and I'm looking to basically connect the PHP to an OpenFire installation on my localhost. This is a piece of code I found (hack and slash I know but I can't seem to wrap my head around this). Anyway code just simply sends a message: <?php include("xmpp.php"); //username = user without domain, "user" and not "user@server" - home is the resource $conn = new XMPPHP_XMPP('my.server', 5222, 'username', 'password', 'home'); // Enables TLS - enabled by default, call before

Google Cloud Messaging over XMPP protocol (server working with PHP and XMPPHP). How does it work?

大兔子大兔子 提交于 2019-12-21 02:21:28
问题 maybe you heard already about it. It was announced at the Google IO maybe one month ago. Google Cloud Messaging was only downstream (server --> phone), but now with the enhancement CCS (cloud connection server) you can send messages upstream over a persistent TCP connection thanks the XMPP protocol. I have already designed an application which works with GCM and HTTP. It uses the gcm library and the classes that are packed in there (like GCMRegistrar). This classes are now deprecated, and

XMPPHP GTalk Status

强颜欢笑 提交于 2019-12-08 14:46:02
问题 I’m trying to get my online status using XMPPHP and I can’t seem to get anything that has my status from the $conn . Here is a snippet of my code: require_once('XMPPHP/XMPP.php'); $conn = new XMPPHP_XMPP('talk.google.com', 5222, 'xxxx@gmail.com', 'xxxxx', 'xmpphp', 'gmail.com', $printlog = false, $loglevel = XMPPHP_Log::LEVEL_INFO); $conn->connect(); $conn->processUntil('session_start'); $conn->presence($status='Controller available.'); var_dump($conn); // this gives me a long output but