php - Read a page generated with JavaScript -
this time i'm looking special. in php page, got table generated javascript, here example : example page this table racing game results. didn't write js, , can't change format of results. need parse these results variables, generate championship results giving points guys, adding points of multiple series, etc... i tried : parsing domdocument, substr, it's js generated can't work. >>this solution<< sounded doesn't work. do guys have idea exploitable array ? if not, suggest alternative solution ? i'm not able reproduce js in php function, hard. here js : click thank ! here's how you'd able parse initial array in php: $url = 'http://mxs-concept.com/liveresults/test.php'; $page = file_get_contents($url); // fetch page preg_match('/resultslines=(.+)print_race_analysis/sim', $page, $matches); // find javascript array $js = preg_replace('/,\s+\]$/', ']', $matches[1]); // fix last ...