【发布时间】:2022-01-11 23:58:38
【问题描述】:
我将使用 PHP Simple HTML DOM Parser 从另一个域中提取this page 的信息,
但不幸的是,当我使用file_get_html 或file_get_content 时:
$html = file_get_html('https://aasood.com/a02s-64gb-4gb.html');
我收到此错误:
file_get_contents():SSL 操作失败,代码为 1。OpenSSL 错误消息:error:1416F086:SSLroutines:tls_process_server_certificate:certificate verify failed
我不拥有aasood.com,我无法更改其服务器。
请帮我解决这个问题
【问题讨论】:
标签: php ssl simple-html-dom