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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -