Using Simple HTML Dom to match a string on the page

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2010-06-01T16:25:36Z Indexed on 2010/06/01 16:33 UTC
Read the original article Hit count: 323

Filed under:
|

Hello all,

How do I match and get the flash vars on a HTML page? I am using simple HTML dom element and I am able to narrow down to a div containing the text I need.

<script type="text/javascript"> 
var s1 = new SWFObject("jw4.4/player.swf", "player", "400", "50", "9");
s1.addParam("allowfullscreen", "true");
s1.addParam('allowscriptaccess','always');
s1.addVariable("width","400");
s1.addVariable("height","50");      
s1.addVariable("overstretch", "false");
s1.addParam('flashvars',"this_id=/tg&amp;autostart=true");      
s1.write("container");

How do I get the value of this_id, so I want to return /tg? What would I put in find? Or do i have to use something else?

$html = file_get_html("$url");

$file_path = $html->find('this_id=/');

Thanks all for any help

© Stack Overflow or respective owner

Related posts about php

Related posts about dom