我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

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?

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

近期文章

  • PHP网页重定向。 本地主机
  • 为什么我没有得到joomla组件中的paypal响应?
  • 标准PHP应用程序中奇怪的CLOSE_WAIT状态
  • 在PHP中使用shell_exec geogig init时权限被拒绝
  • RethinkDB和PHP-RQL如何同时过滤+匹配
  • 将PHP变量发送到Javascript而不影响“查看源代码”
  • Bootstrap网站中订阅的条带集成,API密钥无效
  • 将带有get方法的PHP URL添加到JQUERY代码中
  • 销毁时登录表单中的cookie错误
  • 如何将对象插入多个类别并使用php检索
  • 在ubuntu 15中找不到apt-get中的php5-mysql
  • www-data running命令不起作用
  • sum字符串与数字onclick
  • 如何在phalcon中使用Oauth2?
  • Wordpress用PHP创建帖子
  • PHP文件未在本地主机上运行
  • 无法在自定义页面中获取post_content?
  • 成功发布后,AJAX检查回数据库
  • 三种不同的角色,三种不同的观点
  • 通过params或直接在方法体中获得params

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华