Leopard2014
Programmer
Hi all i am trying to parse a html that has many divs and i want to output only the value of href for these divs. could any one show me how this can be done? Thanks
Note: i am using file_get_contents to get remote html for parsing.My main goal is get MID= value from href=
Note: i am using file_get_contents to get remote html for parsing.My main goal is get MID= value from href=
PHP:
<td width=154 valign="top"> <div style="height:135px; border:1px solid #FFFFFF; background:#FFFFFF; margin-left:2px; text-align:center; ">
<a href="/Ext/series.php?name=folder&id=1442&MId=71402&page=0"><img border="0" src="[URL unfurl="true"]http://www.somesite.com/1.jpg"[/URL] width="150" height="83"></a><br>
<font face="Tahoma" size="2"><b>Movie Name</b><br/>
24 episodes
</font>
</div>
</td>