Blank output when using SIMPLE HTML DOM


#1

Hello everyone, I am trying to use simple html dom PHP library with following code -

<?php

include('simple_html_dom.php');
 
 
 $url='http://comicbook.com/';
 
 
$htmlhome = file_get_html($url);

echo $htmlhome;

?>

But this is giving blank output? Is there any problem with this code?


#2

Try the https version of the website :slight_smile: