答案 0 :(得分:0)
我设法在mpdf.php中更改了一个检查,它检查allow_url_fopen是否为Off,如果它不使用cURL。我改变了代码
if ((!$data || !$type) && !ini_get('allow_url_fopen') && function_exists("curl_init")) {
$this->file_get_contents_by_curl($file, $data); // needs full url?? even on local (never needed for local)
if ($data) { $type = $this->_imageTypeFromString($data); }
}
到
if ((!$data || !$type) && ini_get('allow_url_fopen') && function_exists("curl_init")) {
$this->file_get_contents_by_curl($file, $data); // needs full url?? even on local (never needed for local)
if ($data) { $type = $this->_imageTypeFromString($data); }
}