hi David, 

You are right i guess you can do the same with xdb_file too. Taking into 
what you say about transports i guess xdb_file would be more stable in deed. 
However i recommended xdb_sql cause it's easier IMHO to do a db query in PHP 
than to parse the user.xml (and i love xdb_sql :-) ) 


David Sutton writes: 

> 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
>> >[EMAIL PROTECTED]
>> >http://mailman.jabber.org/listinfo/jdev 
>> 
>>  
>> 
>> --------------------
>> raditha dissanayake
>> [EMAIL PROTECTED]  
>> 
>> _______________________________________________
>> jdev mailing list
>> [EMAIL PROTECTED]
>> http://mailman.jabber.org/listinfo/jdev
> 
> -- 
> David Sutton
> Email: [EMAIL PROTECTED]
> Jabber: [EMAIL PROTECTED]
 


 --------------------
raditha dissanayake
[EMAIL PROTECTED] 

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to