Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get, in php, the entire html of a page loaded in part from jquery
    primarykey
    data
    text
    <p>i've this problem for days... I have to load from php the entire html of a page. On this page there is a jquery function that is called when all the page is loaded. This function loads other html into page, so i have to get all the html loaded ( the part loaded with jquery too). I can know that i get all the page trying to find some tag loaded only from jquery. ( for example: tag input with name XXX, tag input with attribute multiple, etc. )</p> <p>so i try:</p> <pre><code>$html = file_get_contents("http://wwww.siteToScrape.com"); if (strpos($html, 'multiple') !== false) { echo 'found'; } else { echo 'not found'; } </code></pre> <p>but result is 'not found'.</p> <p>Then i downloaded <a href="http://simplehtmldom.sourceforge.net/" rel="nofollow">simple html dom</a> and i try:</p> <pre><code>include 'simple_html_dom.php'; $html = file_get_html("http://wwww.siteToScrape.com"); if (strpos($html, 'multiple') !== false) { echo 'found'; } else { echo 'not found'; } </code></pre> <p>but result still remain 'not found'.</p> <p>so i think to get some php script what emulate browser ( so can load jquery too ) and i downloaded <a href="http://simpletest.org/en/browser_documentation.html" rel="nofollow">PHP Scriptable Web Browser</a> and i try:</p> <pre><code>require_once('browser.php'); $browser = new SimpleBrowser(); $p = $browser-&gt;get('http://wwww.siteToScrape.com'); if (strpos($p, 'multiple') !== false) { echo 'found'; } else { echo 'not found'; } </code></pre> <p>but result is still again 'not found'. I don't know how to do it.. can someone help me??? thanks!!!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload