首先,使用以下代码检查您的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
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)