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

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
373
S
218
G
84
Posts: 23,440
Reputation: 186,070

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

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

Post » Sun Sep 04, 2011 11:28 pm

Could someone please post an tutorial how to set this up step by step?
ImageImageImageImage
B
154
S
61
G
40
Posts: 2,574
Reputation: 33,783


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover and 8 guests