i'm trying to parse a html page but i have an error, when i run a code on my localhost server (Apache) the code works, but now I uploaded the php file on a web server(Altervista) i receive this error: Call to a member function find() on a non-object.
if(isset($_POST['url'])){
$url =$_POST['url'];
$html = file_get_html($url);
foreach($html->find('div.item') as $index) {
echo $index->find('div.item_head/div.org/h2.rgs/a',0)->plaintext;
}
}