警告:file_get_contents():服务器配置中禁用了https:包装器

警告:file_get_contents():服务器配置中禁用了https:包装器,第1张

警告:file_get_contents():服务器配置中禁用了https://包装器

首先,使用以下代码检查您的PHP文件,然后在php.ini文件中启用fopen

<?php if( ini_get('allow_url_fopen') ) {    die('allow_url_fopen is enabled. file_get_contents should work well');} else {    die('allow_url_fopen is disabled. file_get_contents would not work');}?>

编辑php.ini文件并使用以下代码启用

allow_url_fopen = 1 //0 for Off and 1 for On Flagallow_url_include = 1 //0 for Off and 1 for On Flag


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5600154.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存