php - Finding Content from Javascript using Simple HTML DOM Parser -
how find content "please enter valid key again" using simple html dom parser?
example:
<script language="javascript"> function enable() { alert('please enter valid key again'); } </script>
this don't seem work:
<?php include_once("simple_html_dom.php"); $html = file_get_html("incorrect.html"); $ret = $html->find("please enter valid key again", 0); if ($ret) { echo "found"; } else { echo "not found"; } ?>
you can in simpler way:
<?php include_once("simple_html_dom.php"); $html = file_get_html('incorrect.html'); (strstr($html,'please enter valid key again')) ? print("found") : print("not found"); ?>
Comments
Post a Comment