Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Receive data from Outside SL

zeshu123 Horsley
Registered User
Join date: 28 Jan 2009
Posts: 15
03-12-2009 04:14
Hi,

I am working on an application which contains some location information.I am storing the location information in a text file and in MYSQL database.Now i wanted to use that data in SL.Kindly tell me how i can get that data in SL.

BR,

Zeeshan
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
03-12-2009 04:53
Hi zeshu,

The basic principle is to use scripts (such as PHP or ASP scripts) on your webserver to access the MySQL database. They then output the data as text, which can be accessed like normal webpages. It is then easy to access those webpages from LSL by using the "llHTTPRequest" function.

If it is sensitive data, then security can be tricky, but not impossible. The other challenging area is processing the data in LSL, since it can only handle a relatively small amount at a time, and you have to do all the parsing yourself.


I hope that's a helpful intro. This question comes up an awful lot, so searching past threads in this forum should help, and looking at lslwiki.net for info on llHTTPRequest is a good thing to do as well.
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
03-13-2009 02:28
From: zeshu123 Horsley
.I am storing the location information in a text file and in MYSQL database.

can you post a sample if the text file, and I will see if i can do a simple reader for you?
I have used it before in one of my projects where I read config information from google sites rather than notecards.