[JDEV] Jabber and PHP trigger

wasted wasted at shwango.com
Sat Apr 21 16:53:48 CDT 2001


Uli,

Don't know about PHP (I don't know the status of jPHP), but Perl and
Net::Jabber could do the trick.  I hacked up the chatbot code a bit to get
and put data in our MS SQL 7.0 db.  So I can send a message to
chatbot at jabberserver and I can get or put data in the db.  You can do the
same with a Perl CGI - I haven't used Perl to do this, but JabberBeans in
a servlet works great.

Right now it just parses the actual message text - just like the original
chatbot does.  I'm working on our own namespaces to fit better.  Then I'll
just parse XML - not the message text itself.

Hope that helps.  Take a look at the chatbot code in cvs.

(If anyone can help me get chatbot not to reconnect every two minutes, I'd
appreciate it!)

-wasted

On Sat, 21 Apr 2001, Uli wrote:

> Hi,
> 
> I'm brand new here and would like to know if there is a possibility to start a script e.g. php or perl when jabber receives a request or / and send a message via jabber created by PHP.
> The thing is I would like to create an online RPG and need some information stored in a MySQL DB, The information (Skill, Level, Alaisname, Position on Map...) must be send to a Win Client.
> 
> Thank you for your reply.
> 
> Best regards
> 
> Uli
> 
> Hallo from Munich, Germany
> 
> 
> ==
> 
> 
> uli at leben.de
> 
> _____________________________________________________________
> Ihre kostenlose email-adresse mit http://www.leben.de .
> ____________________________
> Need a Content Manager ? Go to http://www.dasat.com
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
> 





More information about the JDev mailing list