[JDEV] Re: Checking for messages without actually receiving them
David Sutton
jabber at dsutton.legend.uk.com
Thu Sep 26 23:39:01 CDT 2002
Hi all,
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.
Regards,
David
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:
>
> >Hello,
> >
> >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,
> >Sebastian
> >_______________________________________________
> >jdev mailing list
> >jdev at jabber.org
> >http://mailman.jabber.org/listinfo/jdev
>
>
>
> --------------------
> raditha dissanayake
> raditha at raditha.com
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
--
David Sutton
Email: dsutton at legend.co.uk
Jabber: peregrine at legend.net.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20020926/cf9322f3/attachment-0002.pgp>
More information about the JDev
mailing list