I'm not sure if PHP is the right way to do this so if it's not please tell me
I'd like to create a webpage where someone can go an plug in a link to a replay page from a game I play. Normally this page just shows the battle scene. The page also contains a variable named fvars that contains all the individual attacks, how much damage they did, etc. I'd like to grab the value of fvars to give a much more detailed analysis of the battle. Is this possible? I'd like to use a form with a submit button so the user can plug in the link and then click submit and be taken to the analysis page. Again, I don't know if PHP is the best way to do this but, so far I've read about the file_get_contents command which I believe captures the html of the page and puts it in a variable. Can I then call the variable (fvars) by it's name in some way?
This does not work but, I hope you'll get the general idea.
I'd like to create a webpage where someone can go an plug in a link to a replay page from a game I play. Normally this page just shows the battle scene. The page also contains a variable named fvars that contains all the individual attacks, how much damage they did, etc. I'd like to grab the value of fvars to give a much more detailed analysis of the battle. Is this possible? I'd like to use a form with a submit button so the user can plug in the link and then click submit and be taken to the analysis page. Again, I don't know if PHP is the best way to do this but, so far I've read about the file_get_contents command which I believe captures the html of the page and puts it in a variable. Can I then call the variable (fvars) by it's name in some way?
This does not work but, I hope you'll get the general idea.
PHP:
<?php
$file = file_get_contents('[URL unfurl="true"]http://superherocity.klicknation.com/game/pages/battle_replay.php?battle=857337182');[/URL]
Echo $fvars;
?>