User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: Ini files in a webserver

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ini files in a webserver

    Alright, I figured out how to sign my apps (stupid mistake). so I was going to use an INI file in my webserver to port all of it. But when java boots up the game, it won't create the ini file in my web server. How can I fix this?

    It creates the ini on my computer but not on my webserver...

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    Czentnar's Avatar
    Join Date
    Jan 2007
    Location
    Budapest, Hungary
    Posts
    819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    You should use the Get object if you want to make your app communicate with the web server.
    A good thing is that you don't have to sign the applet to use this extension.

  3. #3
    Clicker Multimedia Fusion 2 Developer

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

    Re: Ini files in a webserver

    You cannot directly write files to a webserver. You will have to write some web script (php is often recommended on here) and communicate with that via the "get object".

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    It would be a huuuuuuge risk of security if java applets (which run client side) could write to servers!
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    Well, my issue is this. I am only allowed 2 mySQL servers on my website for now. I was hoping I could find another method to transfer variables and store them via and to my web server. If a PHP file can still store variables and strings on my webserver (I can save the PHP on my webserver, but could my game edit the contents?)

    Assuming I am on track and understanding you correctly, where would I learn how to properly do this WITHOUT mySQL?

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export Module
    Czentnar's Avatar
    Join Date
    Jan 2007
    Location
    Budapest, Hungary
    Posts
    819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    You can use a flat file to store data but I currently I'm not able to upload an example, sorry.
    I will do it as soon as possible.

  7. #7
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    What does that mean?

  8. #8
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    I really want to continue with my game, but I am unable until I can find a way to save data to my server where it can be retrieved by more than one person at a time.

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export Module
    Czentnar's Avatar
    Join Date
    Jan 2007
    Location
    Budapest, Hungary
    Posts
    819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    You can do that with a simple PHP file:
    PHP Code:
    $myFile "flatFile.txt";
    $fh fopen($myFile'a') or die("can't open file");
    if(
    $_GET["name"]!="" && $_GET["value"]!="" && $_GET["key"]=="123456")
    $stringData $_GET["name"]."=".$_GET["value"]."\n";
    fwrite($fh$stringData);
    fclose($fh); 
    And you can use the Get object to execute this PHP file:
    Code:
    http://www.yourwebsite.com/phpFile.php?name=UserName&value=100&key=123456
    This will write a name and a value to the flatFile.txt file.

    The "key" is only a security feature, it can be made a bit more complex.
    You can now retreive the flatFile.txt with the Get object.

    That's for now. Sorry, currently I don't have enough time to write more!
    Good luck!

  10. #10
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini files in a webserver

    Will people be able to edit the contents of that file without my program? I would like some way to protect it. For instance, to store passwords and such. Would the php file still work if my text document is in a protected folder that prevents ANYONE but me from writing or getting into it?

    Basically, is it safe? I will use it now so I can begin. But I will try my best to learn my PHP so I can properly utilize this system.
    By the way,thank you so much for your help. I have had MMF2 for 2 years, but when I first bought it, I had a very small amount of self discipline to create games (I may have had it for more than 2 years. I just know I spelled awesome wrong...).

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. local webserver
    By tompa in forum HTML5 Export Module 2.5
    Replies: 2
    Last Post: 20th December 2013, 07:57 PM
  2. Lacewing Webserver question
    By Pharanygitis in forum Lacewing
    Replies: 1
    Last Post: 17th July 2012, 01:12 AM
  3. Lasewing Webserver Question - Returning a Web Page
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 17th March 2012, 05:08 PM
  4. Replies: 3
    Last Post: 17th June 2011, 12:07 PM
  5. Webserver Example
    By James in forum Lacewing
    Replies: 12
    Last Post: 23rd September 2010, 11:41 AM

Posting Permissions

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