Jump to content


Photo

[Removed]


  • This topic is locked This topic is locked
4 replies to this topic

#1 Nerdrage Studios

Nerdrage Studios

    GMC Member

  • GMC Member
  • 89 posts
  • Version:Unknown

Posted 23 March 2012 - 02:40 PM

[REMOVED]

Edited by Nerdrage Studios, 10 March 2013 - 12:58 AM.

  • 0

#2 NakedPaulToast

NakedPaulToast

    GM Studio/Mac/Win

  • GMC Member
  • 7202 posts
  • Version:GM:Studio

Posted 23 March 2012 - 02:50 PM

Can some one tell me how to write/read ini files straight to/from my ftp server in game maker html5?

I'm only looking for .ini files and not plain text files such as .txt files.

you can't
  • 0

#3 alexandervrs

alexandervrs

    GMC Member

  • GMC Member
  • 419 posts
  • Version:GM:Studio

Posted 23 March 2012 - 09:56 PM

You can actually, but it requires server-side scripting. I also believe Mike has said that there's server-side ini read/writing by adding the ini as included file, but there's no documentation on that yet.

Using PHP, for reading ini files you could start here: http://www.php.net/m...-ini-string.php & for writing ini files, check out this thread: http://stackoverflow...e-values-in-php (or use a PHP class like http://www.phpclasse...-INI-files.html)

You can use AJAX to communicate with the server in order to access the PHP script and interact with the ini files, GML functions http_post_string() and http_get() should do fine as well. Check out the documentation here on how to use them.

Edited by alexandervrs, 23 March 2012 - 10:00 PM.

  • 0

#4 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 1488 posts
  • Version:GM:Studio

Posted 25 March 2012 - 08:08 PM

I also believe Mike has said that there's server-side ini read/writing by adding the ini as included file, but there's no documentation on that yet.

No I didn't. I said there was server side READING, and when you write, it stores it on the client. If you then read again, it checks the client first.

Unless you have server side code to deal with it, you'd have to put user names and passwords in your client side code - and that's just a BAD idea all round.

The same goes for saving to FTP from the client - don't.
  • 0

#5 alexandervrs

alexandervrs

    GMC Member

  • GMC Member
  • 419 posts
  • Version:GM:Studio

Posted 26 March 2012 - 02:06 PM

No I didn't. I said there was server side READING, and when you write, it stores it on the client. If you then read again, it checks the client first.

Ah I see now.

Unless you have server side code to deal with it, you'd have to put user names and passwords in your client side code - and that's just a BAD idea all round.

The same goes for saving to FTP from the client - don't.

Of course, why anyone would do that? I mean with the http functions you can just do all the interactions you need with server-side scripts right?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users