的所有内容我试图检索使用file_get_contents()具有XML数据的网页。获取与file_get_contents()
$get_url_report = 'https://...'; // GET URL
$str = file_get_contents($get_url_report);
问题是,file_get_contents只获取页面的安全内容,并只返回一些没有XML的字符串。在Windows IE中,如果我输入$ get_url_report,它会发出警告,如果我想显示所有内容。如果我点击是,那么它会显示我的XML,这是我想要存储在$ str中的。关于如何从网页$ get_url_report中将XML数据检索到字符串的任何想法?
你tryed打印$海峡使用html_entities? – Manhim
感谢大家的评论。我目前无法访问我的文件,但我会在明天研究它并提出更新。我确实在php.ini中启用了openssl。在phpinfo()中,它显示在PHAR下启用。 (我认为这是正确的?) – musicliftsme
@Manhim,工作。谢谢! – musicliftsme