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
9
Posts: 339
Reputation: 9,564

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
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

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
9
Posts: 339
Reputation: 9,564

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,903

Post » Sun Sep 04, 2011 11:28 pm

Could someone please post an tutorial how to set this up step by step?
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343


Return to Construct 2 General

Who is online

Users browsing this forum: JesusJ, troublesum and 13 guests