Can I make online highscore without php/mysql?

Get help using Construct 2

Post » Mon Aug 24, 2015 7:42 pm

Like the topic title says , can it be done without using php/mysql?
Make it use an externa file to read/write data from?

I have my own webserver running wamp but have zero knowledge about php/mysql.


Any thoughts?

Thanks
B
32
S
10
G
6
Posts: 259
Reputation: 6,776

Post » Mon Aug 24, 2015 7:55 pm

I think you'd have to have some server-side script such as php write to a file. So you don't need mysql, but you'd use something like php. Look into ajax and xmlhttprequest
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Mon Aug 24, 2015 8:21 pm

A good idea to avoid MySQL is to handle read/write a CSV with PHP.

Should be easy reproduce the following example:
http://www.eatyourvariables.com/php/csv ... and-writer

And you could do something like this:

Code: Select all
$writer = new CSV_Writer();
$writer->setLayout(array('highscore', 'player'));
$writer->setOuputCsv('export.csv', '/abs/path/to/dir');
$writer->writeRow(array('highscore' => '1283', 'player' => 'Kramer'));
$writer->clean();
B
15
S
5
Posts: 40
Reputation: 1,221

Post » Mon Aug 24, 2015 8:34 pm

Hmm looks like I'm gonna have to skip it for now :( never used php before...
"Make games without coding" only gets you so far.

Thanks very much for takig the time to answer though
B
32
S
10
G
6
Posts: 259
Reputation: 6,776


Return to How do I....?

Who is online

Users browsing this forum: David181 and 13 guests