How do I check for a number in my .php file in my website

Get help using Construct 2

Post » Thu Feb 25, 2016 12:21 am

I'm using AJAX to create a game updater/launcher, i'm trying to detect the number on this page

raddevvan_comuv_com/game_updates/nsad2/status.php (replace the "_" with ".")

I'm doing this so I can check the version number to allow the player to get the latest version without constantly checking a website so they can get the latest version

Can someone explain how to achieve this?
B
4
S
1
Posts: 3
Reputation: 356

Post » Thu Feb 25, 2016 2:24 am

You should be able to load the php file as a string with an AJAX request, then parse out your version number with either regex or tokenat.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,699
Reputation: 64,446

Post » Thu Feb 25, 2016 2:42 am

oosyrag wrote:You should be able to load the php file as a string with an AJAX request, then parse out your version number with either regex or tokenat.

...what?

I'm pretty new to this software so I don't really understand what any of this means

Edit: Oh... thanks

Edit 2: Wait... Parse... I'm sorry, i'm still so very confused... can you please guide me through how to parse, because I have no idea what that means
B
4
S
1
Posts: 3
Reputation: 356


Return to How do I....?

Who is online

Users browsing this forum: Uglypenguin, Yahoo [Bot] and 12 guests