XMPP.php Class not working -
I am using XMPP.fp (i.e. xmpp class) to create a chat application in GMAT. I have put the correct username and password of GTA but it is not working. Code I used (found from GitHub.com)
& lt; Includes php 'XMPP.php'; #ImpPHP_Log :: Using LEVEL_VERBOSE to get more logging for error reports, if it does not work, then do you use 64-bit PHP as & lt; 5.2.6? $ Conn = new XMPPHP_XMPP ('talk.google.com', 5222, 'username', 'pass', 'xmpphp', 'gmail.com', $ printlog = false, $ loglevel = XMPPHP_Log :: LEVEL_INFO); Try {echo "welcome 2"; $ Conn- & gt; Connect (100, wrong, true); $ Conn- & gt; ProcessUntil ('session_start'); $ Conn- & gt; Presence (); $ Conn- & gt; Message (youomeid@somewere.com, 'this is a test message!'); $ Conn- & gt; Disconnect (); } Hold (XMPPHP_Exception $ e) {echo "failed"; Die ($ E & gt; getMessage ()); }? & Gt;
and I'm getting the error (exception)
The reception failed 2 failed before the timeout expired.
I am using Unix based webserver, is there a software required to run Chatsverver or something like this ... please help!
The issue should usually disappear after the timeout value is increased. Alternatively, try the Jacqueline library if you are still facing the same problem ....
Comments
Post a Comment