Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Http and php question...

Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
02-29-2008 11:36
Hi every body!

I try to undestend this better so I write here some ideas and maybe some one can explain me better :)

I know how make a request via http to some php file on my site ,get a response and for example say it in chat.
Its ok whit this (I think .. lol )
But....
How I can point to my script in world via the PHP file on my site, for example pressing a button on web and my prim say "hello php!" if the php file dont know where send the info?
I think with some email to the object if first the objects send his own key and the php get it and add [email]the@lsl-lindenlab..etc[/email] etc.
I dont know if is this way is the best or even is a bad idea, some light to this is very very very apreciated ;)
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-29-2008 13:27
You cannot initiate an HTTP connection from an external web server to a script. You can only do the reverse. You can use XML-RPC to do something kind of similar to what you want, but it is buggy, very limited, and requires you to setup a channel in-world that you then give to your external server somehow. The easiest solution is probably to have your script poll your webserver every so often using HTTP.

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llHTTPRequest
http://www.lslwiki.net/lslwiki/wakka.php?wakka=XMLRPC