I need to do a web scraping with php and I found the "simple html dom" library.
On localhost it's working perfectly, but when I put it on the server it doesn't work.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
$html = new simple_html_dom();
$html->load($response);
return $html;
I've seen the server settings, php version, but everything ok.