php - Get outerHTML from a website and put it into a string. I'm lost -


there (dynamic) websites source code not equal outerhtml of site. example, source code of site of interest is:

            <table>                 <tr>                     <td class="tname-home logo-enable">                         <span class="tname">                             <span style="display: none" class="dw-icon ico">&nbsp;                             </span>                             <a href="#" onclick="window.open('/team/unics-kazan/rtwgehhr'); return false;">unics kazan</a>                         </span>                      </td>                      <td class="current-result">                         <span class="scoreboard-divider">-                         </span>                      </td>                      <td class="tname-away logo-enable">                         <span class="tname"><a href="#" onclick="window.open('/team/maccabi-tel-aviv/nluro05b'); return false;">maccabi tel aviv</a>                             <span style="display: none" class="dw-icon ico">&nbsp;</span>                         </span>                      </td>                 </tr>              </table> 

as can see corresponds "live score" of game. in code, nonetheless, score doesn't appear. "-" divides score of local team , away team.

if have @ outerhtml of same element, find this:

           <table>                         <tr>                <td class="tname-home logo-enable">                     <span class="tname">                         <span style="display: none" class="dw-icon ico" title="advancing next round">&nbsp;                         </span>                         <a href="#" onclick="window.open('/team/unics-kazan/rtwgehhr'); return false;">unics kazan</a>                     </span>                </td>                <td class="current-result">                   <span class="r">                     <span class="scoreboard">61                     </span>                     <span class="scoreboard-divider">-                     </span>                     <span class="scoreboard">63                     </span>                   </span>                 </td>                 <td class="tname-away logo-enable">                     <span class="tname"><a href="#" onclick="window.open('/team/maccabi-tel-aviv/nluro05b'); return false;">maccabi tel aviv</a>                         <span style="display: none" class="dw-icon ico" title="advancing next round">&nbsp;</span>                      </span>                 </td>              </tr>            </table> 

note code similar, not equal, now, actual score visible (61-63 @ moment).

the question how can store outerhtml of website php string, can work it. function:

file_get_contents("www.website.com") 

would capture first code, has no score on it...

should need other explanation, please let me know. important me solve issue. thank you!


Comments

Popular posts from this blog

Formatting string according to pattern without regex in php -

c - zlib and gdi32 with OpenSSL? -

java - inputmismatch exception -