LSL Wiki Mirror 01-05-2007 :: BirdRaven

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
ANTHONY M. POWERS
AKA Bird Raven
http://sldatabase.com/
tehraven@gmail.com

Programming, Webpage Design, Server Software Maintanance
PROFESSIONAL PROFILE
- Network Management
Setup, Managment and Customer Services
Networking (Hardware & Software) and Maintainance.

- Warehouse Inventory
Stock & Inventory
Custom Order Completions

- Computer Shop Frontdesk
Helping walk-in shoppers find and understand the field of computers and technology.

SYSTEMS EXPERIENCE AND PROFICIENCY
Operating Systems

Programming Languages


PROFESSIONAL EXPERIENCE
Programmer
Independent company, CrashBoomWorks
-- Created Unix Programs For Entertainment
-- Created A Order System For Local Resturant

SLDatabase, www.sldatabase.com
-- Created complete webpage frontend
-- Backend data system (PHP/MySQL)

WebDesign, owner
Power Surfing Web Services

SecondLife:
Programming:


Building:
Texturing:

Help:
Usually everyone comes to me for help. This contradicts my work schedule, but I maintain a solid relationship with past clients and new acquantances to assure that my products and services are at top-notch conditions.

Some Code Snippets To Get Your Mind Going:

This code sends a message (the 'message' variable) to a php script that replies with the message 'Received!'

For the SecondLife�© script, you need to use llHTTPRequest() to send the data.
Then, when the page 'replies', you gather the data using http_response()

Now for the PHP. This script gathers the message and 'replies' back with the message 'Received!'.
Remember, when you use "GET" in llHTTPRequest(), you are simply READING the output of the PHP file.
So a 'reply' is simple the output data.

key request;
default
{
    state_entry()
    {
        //I Would Not Recommend Calling This Function In The State Entry
        //This Is Only For Communication Method Demonstrations.
        
        //When passing space characters over HTTPRequest, it's a good idea
        //to use llEscapeURL to make all spaces into %20, etc. This preserves them.
        string message = llEscapeURL("This is my neat message.");
        request = llHTTPRequest("http://www.your-webpage.com/test-file.php", [HTTP_METHOD, "GET"], "message=" + message);
    }
    http_response(key indentifier, integer status, list metadata, string message)
    {
        if(indentifier == request) //This is the return data from our llHTTPRequest() function in state_entry()
        {
            llSay(0, message);
        }
    }
}

//And the PHP looks like this:
<?php
if(isset($_SERVER['message']))
{
     // You can do something with the received message.
     $message = $_SERVER['message'];

     // Now you reply with 'Received!'
     echo "Received!";
}
?>
There is one comment on this page. [Display comments/form]