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
362
S
216
G
75
Posts: 23,064
Reputation: 180,315

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
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
37
Posts: 2,549
Reputation: 31,711


Return to Construct 2 General

Who is online

Users browsing this forum: TheRealDannyyy and 8 guests