douhuan1901 2016-03-27 18:13
浏览 79

file_put_content创建空文件

I have connected my server to an smb share, where all web files are stored. I also have lighttpd as webserver. The network drive is mounted and can be read by lighttpd. But when I try to write a file with file_put_content, an empty file will be created. And there is also a warning in the error.log: "permission denied"

Where could be my mistake?

  • 写回答

1条回答 默认 最新

  • duan198409 2016-03-27 18:39
    关注

    Check if the file is accessible to PHP (open_basedir). Here's what is probably causing the problem: http://php.net/manual/en/ini.core.php#ini.open-basedir

    评论

报告相同问题?