Edited by Nerdrage Studios, 10 March 2013 - 12:58 AM.
[Removed]
#1
Posted 23 March 2012 - 02:40 PM
#2
Posted 23 March 2012 - 02:50 PM
you can'tCan 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.
#3
Posted 23 March 2012 - 09:56 PM
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.
#4
Posted 25 March 2012 - 08:08 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.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.
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.
#5
Posted 26 March 2012 - 02:06 PM
Ah I see now.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.
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?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 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



This topic is locked








