Questions tagged [xmpphp]

XMPPHP is a PHP library for XMPP (aka Jabber).

XMPPHP is the successor to Class.Jabber.PHP.

Some of the features include:

  • Connect to any XMPP server
  • Supports TLS encryption
  • Several XML processing approaches and supported styles

In XMPPHP, the main processing is done by XMLStream.php. This contains a class that could be used to make any streaming XML socket server or client. It handles class connections,sending XML through the socket, but most importantly handling incoming events.

Links:

38 questions
1
vote
3 answers

Forcing chat bot made with JAXL/XMPPHP to reconnect upon disconnection

I'm using the JAXL library to implement a jabber chat bot written in php, which is then ran as a background process using the PHP CLI. Things work quite well, but I've been having a hard time figuring out how to make the chat bot reconnect upon…
mdpatrick
  • 1,082
  • 9
  • 12
1
vote
0 answers

How to send multicast message (multiple users) using xmpphp and PHP

I want to send multicast message to other users in ejabbered. I have succeeded in send 'single' and 'group' message //for single chat $conn->message($toJabberId, $message, "chat", null, null); //for group chat $conn->presence(NULL,…
Dineshaws
  • 2,065
  • 16
  • 26
1
vote
1 answer

Can't get list of users (roster) from xmpphp

I have an app where I send xmpp message to some devices. This successfully works. But now I want to recieve roster (list of connected users) and I get empty array, however there are 4 users there. Here is my code …
Sergey Scopin
  • 2,217
  • 9
  • 39
  • 67
1
vote
0 answers

How to loop every 3 minutes but script not sleep

I have a script for chat auto respond that uses while() to run, so it runs forever until it dies. I want to be able to make it send a 'PING' message once every 3 minutes but still can do 'AUTO RESPOND' each message received. The trouble is if i am…
1
vote
4 answers

How to echo something every 3 minutes while in an endless loop?

I have a script that uses while(true) to run so it runs forever until it dies. I want to be able to make it send a message once every 3 minutes and reconnecting every disconnect, how can I do this? The script for runs on a Jabber server with using…
1
vote
1 answer

XMPHP doesn't work in local

I have a problem with XMPPHP downloaded from this address : http://code.google.com/p/xmpphp/downloads/list I downloaded the last one in the list (Jul 2009) Actually, I run Jabber in local (development mode) .. and I want to test sending chat…
SmootQ
  • 2,096
  • 7
  • 33
  • 58
1
vote
1 answer

invite gtalk user via xmpphp

I have set up a basic install of XMPPHP and to test it I tried sending a message from one of my gtalk (GoogleTalk) accounts to another gTalk account. The receiving account did not show the message, or the normal "user * has sent you a message: …
techtheatre
  • 5,678
  • 7
  • 31
  • 51
0
votes
1 answer

Ejabberd user auth failed with mysql

I have installed ejabberd in my local system with mysql using below reference link. i am using php for server side use. https://medium.com/modern-sysadmin/how-to-install-ejabberd-18-01-xmpp-server-with-mysql-on-ubuntu-16-04-f0facededf2e Everything…
mayur panchal
  • 265
  • 1
  • 16
0
votes
2 answers

XMPPHP sends message but won't receive

useEncryption(true); $conn->connect(); $conn->processUntil('session_start'); $conn->message('person@server.com', mktime()); $payloads =…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
0
votes
1 answer

XMPP (XMPPHP) session won't start

Fellows I'm working in a new server and, at first, it looks all good. The eJabberd webadmin runs OK and I was able to even create an user by that interface. The situation is, the same application that usually ran on my previous server freezes at the…
Ivan Cézanne
  • 78
  • 1
  • 11
0
votes
1 answer

How to create XMPP(ejabberd) users using XMPPHP client

I have created the connection and sent messages using following code, include("XMPPHP/XMPP.php"); $conn = new XMPPHP_XMPP( '192.168.1.204', 5222, 'eshin(username)', 'eshin(password)', 'xmpphp', …
0
votes
1 answer

How to send and receive message using xmpp in php

include("xmpp.php"); $conn = new XMPP( 'talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', ); //$conn->use_encryption = false; //…
0
votes
1 answer

how to receive message in xmpphp

it is clearly stated in the examples how to send message but, i am not clear with how to receive messages initiated by other client in the server any help is highly appreciated Here is my code for sending the…
0
votes
1 answer

XMPPHP to Openfire: Send message seems OK but target doesn't receive it

My code is the following: $conn = new XMPPHP_XMPP('localhost', 5222, 'pidgin', 'pidgin', 'xmpphp', 'localhost', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_VERBOSE); $conn->connect(); $conn->processUntil('session_start'); $conn->presence('Hello I…
Alex M.
  • 635
  • 1
  • 6
  • 19
0
votes
1 answer

PHP: Maintain a persistent connection to an XMPP chat client

I'm creating a basic chat client using XMPPHP. The other chat client for now is Spark (only for test purposes). I don't understand why does the connect() functioon in XMLStream.php have a timeout of only 30 secs. 1) Is it customizable ? 2) What if I…
Abhishek
  • 743
  • 1
  • 15
  • 28