php技术博客
让天下没有搞不定的bug~

整理:检查主机是否支持php的file_get_contents函数

讲一下代码存储为php文件,在空间运行,即可得出结果。
<?php
echo ‘Curl: ‘, function_exists(‘curl_version’) ? ‘Enabled’ : ‘Disabled’ . ‘<br />
file_get_contents: ‘, file_get_contents(__FILE__) ? ‘Enabled’ : ‘Disabled’;
?>

 

         上传到空间,运行看看空间支持不?不支持怎么办,小涛来帮你解决:file_get_contents函数不能使用的解决方法
         技术分享,技术交流,小涛与您共同成长……

赞(0)
未经允许不得转载:PHP技术博客 » 整理:检查主机是否支持php的file_get_contents函数