簡體   English   中英

我如何在頁面中使用PHP curl循環

[英]how i do with php curl loop in the page

我使用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;

知道並且我想要這個標簽之間的所有值:

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

">

我在此頁面中有20個鏈接,這些鏈接是我如何獲取所有鏈接並顯示在我的網站上的

謝謝

使用此HTML Dom解析器庫DomDocument

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM