User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Retriving things fron a server..later

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Retriving things fron a server..later

    Is there a way for text to be sent to a server and then retrived later? For example, a chat box where if someone logs on, they can still see the entire conversation.

    Just wondering, this would be important for one of my upcoming programs.

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    Yeah, but you really need a serverside script to do it.

    You use MooSock or some other thing to communicate with it thru the URL address.

    So you build a script in something like php, which reads a URL like this:

    www.myserver.com/somefolder/scores.php?action=set&name=Dave&score=10241

    The PHP/ASP/CGI script will handle databases and all that hooplah, and the MMF app will just send it the data.

    Obviously you'd try and encrypt it a little, so it'd be more like this:

    www.myserver.com/somefolder/scores.php?codigo=X15f62eI1t


    Then to read the scores/text/data back off the server, you add a function to the script. Perhaps something like:

    http://.../scores.php?action=get

    and that would simply list off line by line the score table or the text log.

    Using MooSock or the Receiver object, you receive the html page in its code form and strip out the scores from the page.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    I have NO IDEA how to make a server, and I doubt I can do that with a public one =/

    Any help on making one?

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    You'd be surprised, lots of server packages (even free ones) available online have support for a language like ASP or PHP, and a database.

    I prefer PHP, because it's fairly simple.

    The gist of PHP is that it runs as a program on the server. When you request a page, PHP scans that page for <? ?> php code, and executes it before sending the page.

    So in its simplest form, you could have a webpage with this code:

    <html>
    <head>
    <title><? print($title); ?></title>
    </head>
    </html>

    Then request it on the server like this:

    http://me.server.com/file.php?title=DavieJonesLocker


    The result is a blank page with the title 'DavieJonesLocker'.

    Your best resource for learning php is www.php.net, it has all the functions you could ever need.

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    I have no interest in learning PHP. I just want ot know what would get this to work.

    Anyway, so I would put this into a web page:

    html>
    <head>
    <title><? print($title); ?></title>
    </head>
    </html>

    then what.

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    Quote Originally Posted by Dines
    <html>
    <head>
    <title><?=$title?></title>
    </head>
    </html>
    Mm... I prefer that

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    Quote Originally Posted by gamefreak202
    I have no interest in learning PHP. I just want to know what would get this to work.
    If you don't want to learn, does that mean you want us to do it for you?

    Sounds like another case of MMGFM (Make My Game For Me).

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    Didn't mean it like that. I meant tell me what I have to do to set up a server. That I will learn, but the rest I have no need for.


  9. #9
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    Your not reading what has been put. Reread it. As Dyna said; if you don't want to learn PHP or ASP and you want to get this to work, just leave this discussion now and stop asking about it. If, on the other hand you want to learn about PHP/ASP, ask your PHP or ASP questions

  10. #10
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Retriving things fron a server..later

    You have two options:
    1: Make a server app in MMF2 and host it yourself (unreliable) or pay for dedicated do-what-you-want hosting to run it on (v. expensive).
    2: Make a "server" app in php/asp and host it on a cheap web service provider.

    Which option do you want?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Ok, say you have 3 things:
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th July 2009, 01:32 PM
  2. Just a few things I'm wondering about
    By GlassShard in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th March 2009, 03:05 PM
  3. how do put in things in the game?
    By Davidddd in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th March 2008, 04:01 PM
  4. Questions about a few things...
    By LeeJiHoon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 4th July 2007, 03:09 PM
  5. Things that i miss from 1.5 ...
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th October 2006, 12:50 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
  •