[JDEV] Re: Checking for messages without actually receiving them
jabber at dsutton.legend.uk.com
Thu Sep 26 23:39:01 CDT 2002
Technically, you could do the same with xdb_file, just by reading the
users .xml file. I'm a little worried about xdb_sql due to transports
and the like.
Saying that, the mod_pending server patch is also good, as detailed in
another reply. I've been including that in all the servers i've built
in the past.
On Thu, Sep 26, 2002 at 08:48:34PM -0700, Raditha Dissanayake wrote:
> Hi sebastian
> How about using xdb_sql and performaing a select count(*) from spool query
> from your php script to figure out if there are any messages? Since php is
> so powerfull this to me looks the easiest way of doing it.
> Sebastian Paul Avarvarei writes:
> >Is it possible to check on the server if there are messages waiting for an
> >user, but without actually getting them from the server?
> >I'm trying to write an PHP module which would display in an Web page a
> >notification, in case there are messages waiting for him/her. I don't want
> >to display the actual messages in the Web page, I want them to stay on the
> >server until the user starts a normal Jabber client.
> >Thanks in advance for your help.
> >Best regards,
> >jdev mailing list
> >jdev at jabber.org
> raditha dissanayake
> raditha at raditha.com
> jdev mailing list
> jdev at jabber.org
Email: dsutton at legend.co.uk
Jabber: peregrine at legend.net.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 232 bytes
Desc: not available
More information about the JDev