PHP Parse html and get specific content from html file

r0gue

New Member
I am creating php script for getting specific content form HTML page, I have different-different type of (structure of html code) html pages.currently I am using PHP Simple HTML DOM Parser my code as following \[code\] for($i=0;$i<count($file);$i++){ $html = file_get_html($file[$i]); $result=$html->find($block1[$i])->innertext; $resultArray[$i]=$result->find($block2[$i])->plaintext; }\[/code\]so which is better "Simple HTML DOM Parser" or any other PHP/HTML parser (please suggest me.)some time my script not getting proper data because if \[code\]$block1\[/code\] or \[code\]$block2\[/code\] is not unique.Thank you in advance.
 
Back
Top