Read/Write to Server-Side File

Discussion and feedback on Construct 2

Post » Mon Aug 29, 2011 1:53 pm

Hey guys

Any way to read/write to a server side file? Specifically a Hi-Scores table.

Cheers
B
55
S
12
G
8
Posts: 339
Reputation: 9,324

Post » Mon Aug 29, 2011 1:55 pm

Right now the best way is to set up a server side script (ASP/PHP) that talks to a database and use the AJAX object to talk to that.
Scirra Founder
B
366
S
217
G
82
Posts: 23,214
Reputation: 183,416

Post » Mon Aug 29, 2011 2:40 pm

That's what I was thinking Ash... How would you pass a variable to the PHP file?
B
55
S
12
G
8
Posts: 339
Reputation: 9,324

Post » Mon Aug 29, 2011 2:44 pm

Use the AJAX object. I believe it does normal GET requests, so you could use that. Something like writescores.php?name=username&score=1000
B
36
S
8
G
8
Posts: 532
Reputation: 6,893

Post » Sun Sep 04, 2011 11:28 pm

Could someone please post an tutorial how to set this up step by step?
ImageImageImageImage
B
146
S
58
G
38
Posts: 2,557
Reputation: 32,504


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest