문제

I am getting some errors.

1.file_put_contents(C:\Inetpub\vhosts\mystateinfo.com\httpdocs\AP201-205\AP201-205\web/app.data/demo-your-first-poll.def/ip-block.txt) [function.file-put-contents]: failed

2.to open stream: Permission denied in C:\Inetpub\vhosts\mystateinfo.com\httpdocs\AP201-205\AP201-205\web\app.ajax-

the above permission error is in following code

    {
        file_put_contents( $this->path_data, "={$this->ipaddr}\r\n", FILE_APPEND | LOCK_EX );
        return true;
    }

3.Can not write [app.data] (C:\Inetpub\vhosts\mystateinfo.com\httpdocs\AP201-205\AP201-205\web/app.data/demo-your-first-poll.def/votes.txt) (Could not get the lock!)

You can check this error on poll used in URL www.mystateinfo.com at the bottom right side

도움이 되었습니까?

해결책

The problem was with access permission on folder in which I was doing upload. You will have to provide the writing permission on that folder.Find permission settings at location of folder and Change access permissions accordingly in your server.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top