User Tag List

Results 1 to 5 of 5

Thread: HTTP Server and Dynamic Lua Pages

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTTP Server and Dynamic Lua Pages

    This server can't be used in an actual website of course, but it can be used to learn the basics of HTTP and MooSock and create Web-based interface (Like Google Desktop for example).

    It also supports Dynamic Lua Pages - DLP as a webpage scripting language (Similar to PHP).

    Known issues:
    -Doesn't support binary files
    -Can't handle POST requests
    -Can't handle more than one request at time (Described in the comments, MooSock crashes. Maybe I did something wrong)

    Quick DLP tutorial:
    DLP outputs lines with the echo function:
    Code:
    echo('Hey!');
    DLP only parses files between <dlp> and </dlp> tags (case sensitive). They MUST be on a line of their own. Tabs and spaces before and after them is allowed:
    Code:
    <html>This line was sent without DLP<br />
    <dlp>
    echo('This line was send with DLP');
    </dlp>
    </html>
    GetIP() returns the user's IP:
    Code:
    echo('Your IP is '..GetIP());
    Get parameters are given as GET_param=value;
    Code:
    echo('The GET parameter name is '..GET_name);
    The rest is usual Lua. DLP examples are included.

    NOTE: Before running, change the Server Location text to the place your files are hosted.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: HTTP Server and Dynamic Lua Pages

    The Lua+ object would stop you from having to use those silly workarounds, and increase the performance of the Lua scripts.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HTTP Server and Dynamic Lua Pages

    Yeah, but (correct me if I'm wrong) the Lua+ object is still in Beta stage.
    Also I didn't have internet connection when I made it and I couldn't download the extension.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: HTTP Server and Dynamic Lua Pages

    Hey, this is rather cool LIJI. Maybe this could be made better with the actual binaries and LuaSocket + some modules for HTML parsing (I have been fiddling around with those, actually).

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: HTTP Server and Dynamic Lua Pages

    Do they work with Lua+?

Similar Threads

  1. exchange data with HTTP server - sending/receiving values from a php script
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th November 2012, 08:58 PM
  2. Http WEB SERVER ONLINE?!?!?
    By TopWeb in forum Lacewing
    Replies: 2
    Last Post: 30th March 2011, 07:03 AM
  3. When Hosting HTTP Server
    By DJFuego in forum Lacewing
    Replies: 4
    Last Post: 25th January 2009, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •