While trying to print the output of the simplehtmldom it gives me 500 error. I tried followed methods but error was same.
Method 1
$html = file_get_html("http://www.google.com");
print_r($html);
After reading responses to other questions, I checked if allow_url_fopen was working and it was.
Method 2
$html = file_get_contents("http://www.google.com");
print_r($html);
This works but when I parse it with following code, again 500 error.
$object = new simple_html_dom();
$object->load($html);
var_dump($object);
Method 3
Then as last resort I thought I should try using curl and then parse. So I used curl and to make sure curl was working i printed the output at it was working. But when I parsed into the simplehtmldom again 500 error on printing the output.
[Sat Sep 08 21:26:19.456961 2018] [:error] [pid 703804] ModSecurity: Output filter: Response body too large (over limit of 404800001, total not specified).
I increased the limit almost a 100 times but still the same error.