Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在页面中使用php curl循环_Php_Loops_Curl - Fatal编程技术网

如何在页面中使用php curl循环

如何在页面中使用php curl循环,php,loops,curl,Php,Loops,Curl,我和curl一起工作 并下载一个网站到我的代码 这是我的代码: $data = get_web_page('http://localhost/www/site.html'); $scraped_page = get_web_page('http://localhost/www/site.html'); $scraped_data = scrape_between($data['content'], "<td class=\"category last\"><a href=\""

我和curl一起工作 并下载一个网站到我的代码

这是我的代码:

$data = get_web_page('http://localhost/www/site.html');
$scraped_page = get_web_page('http://localhost/www/site.html');
$scraped_data = scrape_between($data['content'], "<td class=\"category last\"><a href=\"", "\">");
echo $scraped_data;
我在这一页有20个链接 我如何获取所有链接 并在我的网站上展示


谢谢使用这个Html Dom解析器库

<td class="category last"><a href="
">