Jump to content

Anybody have an online communication example!?


Yamil Dagger
 Share

You are about to reply to a thread that has been inactive for 3687 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I have followed multiple examples to a T and have gotten not a single one to work correctly... I have been able to send data but the website and/or SQL database never recieves anything. I am guessing they are all old and nolonger working so I need an updated one. Anybody have one they KNOW works?

Link to comment
Share on other sites


Yamil Dagger wrote:

I have followed multiple examples to a T and have gotten not a single one to work correctly... I have been able to send data but the website and/or SQL database never recieves anything. I am guessing they are all old and nolonger working so I need an updated one. Anybody have one they KNOW works?

The best that can be said here is what you're wanting to do is not trivial and there are no simple, on-size-fits-all solution available to any of us.

 

If you're willing to pay someone that has mastered this aspect of programming (which entails much more than LSL) please use the Inworld Employment forum to seek them out.

Link to comment
Share on other sites

Thank you Darkie for trying to help but like I said tit is extremely important that communication is BOTH ways. That example helps because it shows how the website can capture information but it does not communicate back. Also you would need SQL databases to save the information which it doesn't show.

 

This is why I need an example. If I can see it in action I can make it work for my needs. I'm not looking for something specific for my use. 

Link to comment
Share on other sites

HI.

 

Thats not as hard as it seems.

On php file do something like:

this is a simple "hello world"

<?$action = $_GET["action"];$var = $_GET["var"];if($action = "action"){echo "boo!";}?>

 

the LSL:

key keyQuery_FOO;default{ touch_start{}{args+="?action="+"action";args+="&var="+"some_vars";keyQuery_FOO = llHTTPRequest("http://www.myuri.com/+args,[HTTP_METHOD,"GET",HTTP_MIMETYPE,"application/x-www-form-urlencoded"],""); // always needs a http_response event}http_response(key request_id, integer status, list metadata, string body) // dont forget thisif{request_id == keyQuery_FOO){llOwnerSay(body); // will result in "boo!"}
}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3687 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...