New to scripting - I am basically hoping that someone can tell me if I am understanding this correctly.
I want to be able to send some information back and forth from an object in Second Life to an external database. By the looks of all the info I've read about LSL, I am basically going to need to build a layer of PHP in between to process things.
The object in SL will use the llHTTPRequest function to pass a list of parameter name/parameter value pairs to the PHP script.
The PHP script will then do what it needs to do to pass this information to the database.
The database will do it's job, and return information back to the PHP script
The PHP script can only output a string of characters back to the object in SL. So I'd need to encode the data I want to send in such a way that it can be sent as a string, and then parsed out by the object in SL.
From there I will be able to have the object in SL process that string, for example, parsing back out to determine a new set of parameter name/parameter value pairs that the database needed to pass.
So basically, LSL can talk to PHP only using stings (ie, send data out by encoding in the URL, and receive data back as a single string which is the output of the PHP script) And the PHP script talks to the database using all it's normal PHP functions.
Is this all correct? Am I understanding it properly? Is this the right way, and/or the best way to deal with an external database?
Thanks in advance for any responses!!!
