Php 无法从MAMP中的https读取源

Php 无法从MAMP中的https读取源,php,curl,https,Php,Curl,Https,我目前在Mac上安装了PHP5.6.10。我尝试使用以下代码从启用https的网站中提取数据: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $url = "https://deshsanchar.com/feed"; file_put_contents("temp.xml", fopen($url,

我目前在Mac上安装了PHP5.6.10。我尝试使用以下代码从启用https的网站中提取数据:

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$url = "https://deshsanchar.com/feed";
file_put_contents("temp.xml", fopen($url, 'r'));
?>
我重新启动了MAMP服务器,但它没有按预期工作

extension=php_openssl.dll
allow_url_include = On
curl.cainfo=⁨/⁨Applications/MAMP⁩/⁨htdocs⁩/cacert-2019-01-23.pem
openssl.cafile=⁨/⁨Applications/MAMP⁩/⁨htdocs⁩/cacert-2019-01-23.pem