开发者社区> 问答> 正文

PHP安装出现错误

服务器用的是Windows2008的系统,安装PHP时出现

PHP Warning: rename(admin,admin): 锟杰撅拷锟斤拷锟绞★拷 (code: 5) in D:hnfxgwwwrootinstall.php on line 154
PHP Warning: file_put_contents(data/first.txt): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 158
PHP Warning: file_put_contents(conn/conn.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 163
PHP Warning: file_put_contents(conn/conn2.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 179
PHP Warning: file_put_contents(admin/../data/function.bas): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../data/api.bas): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../data/ajax.bas): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../data/data.bas): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/version.txt): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../js/scms.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../member/member_edit.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../member/member_news.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../install.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198
PHP Warning: file_put_contents(admin/../search.php): failed to open stream: Permission denied in D:hnfxgwwwrootinstall.php on line 198

展开
收起
冷月葬相思 2018-10-31 16:38:02 7829 0
1 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/

    首先 看到网上说的

    $filename = ‘test.txt’

    if ( is_writable($name) ) {

    file_put_contents($filename,”i am the contents”);

    }else {

    echo “can not write”;

    }

    用这个 is_writable函数判断能否写入。。

    就这个is_writable($name) 函数,我也不懂为何,其实我不加这层判断,实际上是可以写入的。但是,一直就是返回 “can not write“。。。

    最后 我把判断删了 才发现其实可以写入

    作者:kingsley-sun
    来源:CSDN
    原文:https://blog.csdn.net/qq_31739317/article/details/73928037
    版权声明:本文为博主原创文章,转载请附上博文链接!


    首先 看到网上说的

    $filename = ‘test.txt’

    if ( is_writable($name) ) {

    file_put_contents($filename,”i am the contents”);

    }else {

    echo “can not write”;

    }

    用这个 is_writable函数判断能否写入。。

    就这个is_writable($name) 函数,我也不懂为何,其实我不加这层判断,实际上是可以写入的。但是,一直就是返回 “can not write“。。。

    最后 我把判断删了 才发现其实可以写入

    2019-07-17 23:11:34
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
阿里云栖开发者沙龙PHP技术专场-直面PHP微服务架构挑战-高驰涛 立即下载
PHP安全开发:从白帽角度做安全 立即下载
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载