کپی قسمت/بخش هایی از یک سایت توسط php
جمعه, ۱۳ آذر ۱۳۹۴، ۰۶:۲۰ ب.ظ
منبع:gameover.blog.ir
منبع اصلی:
http://simplehtmldom.sourceforge.net/
// Create DOM from URL or file $html = file_get_html('http://www.google.com/'); // Find all images foreach($html->find('img') as $element) echo $element->src . '<br>'; // Find all links foreach($html->find('a') as $element) echo $element->href . '<br>';
منبع اصلی:
http://simplehtmldom.sourceforge.net/
۹۴/۰۹/۱۳