w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
PHP Simple HTML DOM Parser [fatal error Call to a member function find() on a non-object ]

You forgot to add the function name file_get_html, the code should be like this:

<?php
  include 'simple_html_dom.php';

  $html =
file_get_html("http://99designs.pt/logo-design/contests?show=finished");
  foreach($html->find('span[class=active.sl_notranslate]') as $aholder)
{

    echo $aholder . '<br>';
  }

?>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.