Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

HTTP and PHP

Silverdown Seetan
Registered User
Join date: 22 Aug 2008
Posts: 18
11-11-2008 05:27
Is it possible to send and recieve information from my web server & online MySQL database? I am scriptor and don't want to attempt to try it if it's not.

If yes, are there any free examples?
Georg Stonewall
Husband of Nikki
Join date: 21 Jan 2007
Posts: 211
11-11-2008 05:54
All you need you find here:

http://wiki.secondlife.com/wiki/Category:LSL_HTTP
_____________________
G&N Quality Design


SLURL

Blog

Flickr

XStreetSL
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
11-12-2008 00:33
Search Key Word(s): "php" Forum: Scripting Library
Try it yourself:
/invalid_link.html

This looks promising:
/15/d1/132811/1.html
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
11-14-2008 22:31
At this stage you can only send HTTP messages out of SL to a web based .php/database.
The incoming HTTP to SL is close to being ready, perhaps January.
Meanwhile you can have an in-world object poll your database as needed to see if information is available which can be sent on the HTTP response.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
11-14-2008 22:42
From: Silverdown Seetan
Is it possible to send and recieve information from my web server & online MySQL database? I am scriptor and don't want to attempt to try it if it's not.

If yes, are there any free examples?


short answer yes

long answer ...

lsl can send text (up to 2k in 1 shot) to a web page, once that text hits your site its totally up to your server to deal with it

basicly you have get (ie url.com/index.php?username=Osgeld Barmy& other stuff) and post which is sorta behind the scenes

in a nutshell if you can write your own web scripts you can have it really do anything, and return text back to SL

a simple example, altho not using mysql, its using a "flat file" (text file as a half baked datastore) can be found here

/54/0c/205116/1.html#post1641083

its totally insecure becuase it uses no auth, plainly visible get functions and public readable text file but its a basic start that usually sends people skyrocketing to stuff i wouldnt touch :)