The problem is Construct 2 doesn't offer PHP engine.
You have to export a HTML5 game and place the directory, then use your real server. You can get working with PHP.
I know it's annoying issue sometimes we have to change adjusts on C2 and export again, there a solution you should use XML plugin it can changes the variables via XML without editing on C2 editor again