Jump to content

Search the Community

Showing results for tags 'html do save'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. hello I write this script with simple_html_do parser lib. now how can I save results I use $html->save('result.htm'); but display main web page url not my result <?phpinclude_once('simple_html_dom.php');// Create DOM from URL$html= file_get_html("http://www.digionline.ir/Allprovince/viewcat/%D9%82%DB%8C%D9%85%D8%AA-%D8%AE%D8%B1%DB%8C%D8%AF-%D9%81%D8%B1%D9%88%D8%B4-%D9%85%D8%B4%D8%AE%D8%B5%D8%A7%D8%AA-%D9%87%D8%A7%D8%B1%D8%AF-%D8%AF%D9%8A%D8%B3%D9%83-%D9%83%D8%A7%D9%85%D9%BE%D9%8A%D9%88%D8%AA%D8%B1/cat=20101",10);foreach($html->find('ul#product-page-product') as $ul) {{ foreach($ul->find('li') as $li) { $item['title']= $li->find('span.product-page-detail-wrapper-text', 0)->plaintext; $item['price'] = $li->find('span.product-detail-wrapper-price', 0)->plaintext; $lis[] = $item; }} } $ul = array();echo$titles="<b>نام محصول:</b>". $item['title'] . "</br> ";echo$prices="<b>قیمت:</b>". $item['price'] . "</br> ";echo$titles="<b>نام محصول:</b>". $item['title'] . "</br> ";echo$prices="<b>قیمت:</b>". $item['price'] . "</br> ";$html->save('result.htm');?> Thank's
×
×
  • Create New...