|
TheLoneWolf Arkin
Registered User
Join date: 26 Jan 2007
Posts: 29
|
04-21-2007 01:59
hi, after started with php to get data stored outside of sl I kind of got stuck  could anybody help me with a sall example as of all the codes i find are to complicated to start with. all i wanna do is connect to my php script and return a confirmation it received it. like i send in sl the word "testing" to my php script and the reutrn of the php would be something like "Test working" just to see how i can put data to php and back. any help would be apriciated. ty
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
04-21-2007 07:39
string URL = "http://www.mysite.com"; list PARAMS = [HTTP_METHOD,"GET"];
key query;
default {
touch_start(integer num) { query = llHTTPRequest(URL + "?action=test", PARAMS, ""); }
http_response(key id, integer status, list meta, string body) { if(id != query) return; llSay(0, body); }
}
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|