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

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

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

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
35
S
8
G
8
Posts: 532
Reputation: 6,868

Post » Sun Sep 04, 2011 11:28 pm

Could someone please post an tutorial how to set this up step by step?
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170


Return to Construct 2 General

Who is online

Users browsing this forum: 8tomo8 and 11 guests