PHP中的curl在相同的DOM页面中表现不同

PHP中的curl在相同的DOM页面中表现不同,php,dom,curl,simpledom,Php,Dom,Curl,Simpledom,我运行了下面的代码,它运行正常,但当我尝试使用此URL时,我看到了一个空白屏幕: 你在做两件事;哪一个导致问题?页面大小可能是问题所在。您必须更改下面定义的默认大小(“最大文件大小”,6000000);或定义(“最大文件大小”,10000000);(它位于simple_html_dom.php的顶部) <?php include('simple_html_dom.php'); $html = getSslPage('https://www.reddit.com/r/pics/comment

我运行了下面的代码,它运行正常,但当我尝试使用此URL时,我看到了一个空白屏幕:


你在做两件事;哪一个导致问题?页面大小可能是问题所在。您必须更改下面定义的默认大小(“最大文件大小”,6000000);或定义(“最大文件大小”,10000000);(它位于simple_html_dom.php的顶部)
<?php include('simple_html_dom.php');
$html = getSslPage('https://www.reddit.com/r/pics/comments/3a53qw/grandmother_mother_and_daughter/');


function getSslPage($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_REFERER, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}

$html = str_get_html($html);

echo $html;