When using below function on cf, if the $url starts with "https:", the method always returns false:
file_get_contents($url);
If I change the $url from "https" to "http", then it works. Is this the problem of CF or is there anyway I can use "https" to grab content from other site?
要从协议https获取内容,您需要从php.ini文件中启用openssl扩展。是否检查是否已启用。
You have to enable openssl support adding related extension in .bp-config/options.json For example
{
"PHP_EXTENSIONS": [" openssl"]
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.