如何在php中获取下一页的file_get_html的html内容?

时间:2014-07-30 16:31:16

标签: php

我想获取此网址的html内容 - http://www.frontline-connect.com/weeklySched.cfm?fac=lajolla&facid=1但是下一页。

请检查我实际想说的是

第1步:转到 - http://www.frontline-connect.com/weeklySched.cfm?fac=lajolla&facid=1

点击查看下周按钮。现在我想获得此页面的内容。你们可以看到网址没有改变。那我怎么做呢

我曾尝试过以下代码

require('simple_html_dom.php') ;
    require_once('HTMLPurifier.standalone.php');
    $calendar_url = "http://www.frontline-connect.com/weeklySched.cfm?fac=lajolla&facid=1";
    $html = new simple_html_dom();
    $html = file_get_html($calendar_url);
    $scheduleTable = $html->find('table',1);
    $purifier = new HTMLPurifier();
    $config = HTMLPurifier_Config::createDefault();
    $config->set('HTML.AllowedAttributes', array('*.id','img.src','a.href'));
    print_r($purifier->purify($scheduleTable,$config));

但是这段代码可以获取当周的内容,

所以请帮助我获取下周的内容

0 个答案:

没有答案