unmk2 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Getting an Uncaught Exception #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was using the code from the example, which was provided in the projects 
homepage, i hosted that PHP file in to my web server and run the code. but it 
is giving me an exception.
the PHP Code:
<?php
include("xmpp.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 
'gmail.com', $printlog=False, $loglevel=LOGGING_INFO);
$conn->connect();
$conn->processUntil('session_start');
$conn->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect();
?>

and the Error i am getting:

Fatal error: Uncaught exception 'XMPPHP_Exception' with message 'Could not 
connect before timeout.' in 
/home/msconslt/public_html/vforms/XMPPHP/XMLStream.php:327 Stack trace: #0 
/home/msconslt/public_html/vforms/message.php(5): XMPPHP_XMLStream->connect() 
#1 {main} thrown in /home/msconslt/public_html/vforms/XMPPHP/XMLStream.php  on 
line 327

Please help!

Original issue reported on code.google.com by inbo...@gmail.com on 3 Jul 2010 at 7:49

GoogleCodeExporter commented 9 years ago
same problem, is there any solution to this?

Original comment by kherad@gmail.com on 30 Jul 2011 at 11:51

GoogleCodeExporter commented 9 years ago
hola me pregunto si solucionaron el problema!!

Original comment by pcvm2...@gmail.com on 13 Apr 2012 at 2:26