Editing XMPPHP

From JaWiki (Jabber/XMPP wiki)
Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: MediaWiki upgrading

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
 
{{Library
 
{{Library
|            name=XMPPHP
+
|            name=XMPPPHP
 
|              url=http://code.google.com/p/xmpphp/
 
|              url=http://code.google.com/p/xmpphp/
|          author=[[Nathan Fritz]] (fritzy)
+
|          author=[http://nathan.fritzclan.com/ Nathan Fritz]
 
|        language={{Lang|l|PHP}}
 
|        language={{Lang|l|PHP}}
|          license={{GPL}} v2
+
|          license=GNU General Public License v2
|          roster=да
+
|          roster=поддерживается
 
}}
 
}}
  
XMPPHP класс на [[PHP]], являющийся наследником [[Class.jabber.php]].
+
XMPPHP - класс на PHP5, являющийся наследником [[Class.jabber.php]].  
  
Простой пример кода для отправки сообщений:
+
{{fixme|так есть там или нет поддержка ростера? я что-то не понял. [[User:Vindicar|Vindicar]] 13:55, 11 April 2009 (GMT)}}
 
+
<?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();
+
?>
+

Please note that all contributions to JaWiki (Jabber/XMPP wiki) may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see JaWiki (Jabber/XMPP wiki):Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)