P. Fishwick Feb 2008 -------------------------------------------------- THIS IS THE CODE THAT GOES INTO A SECOND LIFE PRIM -------------------------------------------------- key requestid; string NUM; default { state_entry() { llListen(5,"","",""); } listen(integer chan, string name, key id, string message) { requestid = llHTTPRequest("http://www.cise.ufl.edu/~fishwick/SL/factorial1.php?var="+message, [HTTP_METHOD,"GET"],""); NUM = message; } http_response(key request_id, integer status, list metadata, string body) { if (request_id == requestid) { llSay(0,"The factorial of "+NUM+" is "+body); } } } ------------------------------------------ THIS IS THE CODE THAT GOES ON YOUR SERVER: ------------------------------------------ #!/usr/local/bin/php