Warning: file_put_contents(常用单词1.txt): failed to open stream: Invalid argument in

一、总结

1、上述问题是因为Win NTFS盘下去除了everyone 权限引起的,解决方法是a、先添加账户  b、给文件夹配置账号和权限

二、php出现Warning: file_put_contents,failed to open stream

Warning: file_put_contents(D:/wwwroot/jinxiongdi/web/temp/caches/f/index_40F756F0.php) [function.file-put-contents]: failed to open stream: Permission denied in D:\wwwroot\jinxiongdi\web\includes\cls_template.php on line 198

Notice: can't write:D:/wwwroot/jinxiongdi/web/temp/caches/f/index_40F756F0.php in D:\wwwroot\jinxiongdi\web\includes\cls_template.php on line 200

解决方法:这个问题主要是 由于

Win NTFS盘下去除了everyone 权限引起的,

在安全权限中加个 Internet 来宾账号 就解决了.

操作步骤:

D盘 -> 属性 -> 安全 -> 添加 用户 IUSR_XXXXX OK, 搞定.

详细步骤:在文件/文件夹的“属性”-“安全”里面可以添加用户和权限,我想使我的某个文件夹的用户列表中加入“Internet 来宾帐户”,就需要按“添加”-“高级”-“立即查找”,在列表中选择“IUSR_***(计算机名)”。之后用户列表里面就有“Internet 来宾帐户”了。
在文件/文件夹的“属性”-“安全”里面可以添加用户和权限,我想使我的某个文件夹的用户列表中加入“Internet 来宾帐户”,就需要按“添加”-“高级”-“立即查找”,在列表中选择“IUSR_***(计算机名)”。之后用户列表里面就有“Internet 来宾帐户”了。

三、测试题-简答题

1、怎么解决Warning: file_put_contents(常用单词1.txt): failed to open stream: Invalid argument in 的问题?

解答:上述问题是因为Win NTFS盘下去除了everyone 权限引起的,解决方法是a、先添加账户  b、给文件夹配置账号和权限

2、Win NTFS盘下怎么加上everyone 权限?

解答:在安全权限中加个 Internet 来宾账号

 

Warning: file_put_contents(常用单词1.txt): failed to open stream: Invalid argument in的更多相关文章

  1. file_put_contents 错误:failed to open stream: Invalid argument 一种原因

    今天在测试nilcms系统的时候,出现了一个报错,导致缓存无法更新: file_put_contents(C:\UPUPW_AP5.4\vhosts\d.tv\NilCMS_APP\include_r ...

  2. Warning: file_put_contents(data.txt): failed to open stream: Permission denied in /Library/WebServer/Documents/test.php on line 22

    最近在学习PHP 在保存文件的时候报Warning: file_put_contents(data.txt): failed to open stream: Permission denied in ...

  3. WARNING: Re-reading the partition table failed with error 22: Invalid argument

    在划分磁盘分区时,遇到错误"WARNING: Re-reading the partition table failed with error 22: Invalid argument&qu ...

  4. 如果Laravel 报错 file_put_contents(): failed to open stream

    问题解决方法 执行命令 php artisan cache:clear 并赋予 /storage 文件夹读写权限: chmod -R 777 storage: 若在执行 php artisan cac ...

  5. php上传文件时出现错误:failed to open stream: Permission denied

    尝试使用php写了一段小的上传程序,但是在使用的时候,在上传文件时出现这个错误,由于之前在写程序要读文件,曾经出现过这个问题,当时是因为要读的文件的权限不够,于是使用chmod 775 1.txt把文 ...

  6. [置顶] PHP调用move_uploaded_file()提示 failed to open stream: Permission denied(Linxux环境,以Ubuntu12.04为例)

    在使用PHP上传文件之后,我们有时候还需要移动到特定的文件夹,这时候就要调用move_uploaded_file()函数,可是会出现如下错误: Warning: move_uploaded_file( ...

  7. php出现Warning: file_put_contents,failed to open stream

    Warning: file_put_contents(D:/wwwroot/jinxiongdi/web/temp/caches/f/index_40F756F0.php) [function.fil ...

  8. unity3d首次倒入工程文件出错Opening file Library/FailedAssetImports.txt failed解决方法

    打开unity3d,首次倒入工程到unity编辑器,但是频繁弹出“Opening file Library/FailedAssetImports.txt failed”的错误对话框,很麻烦. 解决方法 ...

  9. file_put_contents() failed to open stream: Permission denied 问题解决

    很长时间没有写PHP了,今天突然有个需求要写一个保存文件的功能. function downloadFile( $url , $savePath = '' ) {     $fileName = ge ...

随机推荐

  1. 【SSH高速进阶】——struts2简单的实例

    近期刚刚入门struts2.这里做一个简单的struts2实例来跟大家一起学习一下. 本例实现最简单的登陆,仅包括两个页面:login.jsp 用来输入username与password:succes ...

  2. Android-ViewPager+Fragment数据更新问题

    由于FragmentPagerAdapter内部存在缓存.因此调用notifyDataSetChanged()并不可以去更新Fragment的内容. 參考:http://www.devba.com/i ...

  3. zico源代码分析(二) 数据读取和解析部分

    第一部分:分析篇 首先,看一下zico的页面,左侧是hostname panel,右侧是该主机对应的traces panel. 点击左侧zorka主机名,右侧panel会更新信息,在火狐浏览器中使用f ...

  4. 1.3 Quick Start中 Step 2: Start the server官网剖析(博主推荐)

    不多说,直接上干货! 一切来源于官网 http://kafka.apache.org/documentation/ Step 2: Start the server Step : 启动服务 Kafka ...

  5. vue 自定义modal 模态框组件

    参数名 类型 说明 visible Boolean 是否显示,默认false title String 标题 update:visible Boolean 更新visible, 使用:visible. ...

  6. .v 和 .sdf

    DC输出的.v(网表?)和.sdf(储存的是延时的信息) 用于后仿真

  7. maven插件介绍之tomcat7-maven-plugin

    tomcat7-maven-plugin插件的pom.xml依赖为: <dependency> <groupId>org.apache.tomcat.maven</gro ...

  8. Lucene 查询方式

    QueryParser类 QueryParser类对输入字符串的解析 格    式 含    义 “David” 在默认的字段中检索“David”关键字 “content:David” 在“conte ...

  9. GO语言学习(十一)Go 语言循环语句

    Go 语言提供了以下几种类型循环处理语句: 循环类型 描述 for 循环 重复执行语句块 循环嵌套 在 for 循环中嵌套一个或多个 for 循环 语法 Go语言的For循环有3中形式,只有其中的一种 ...

  10. 小程序踩坑记- tabBar.list[3].selectedIconPath 大小超过 40kb

    重新启动微信小程序编辑器的时候遇到了这样的一个问题: tabBar.list[3].selectedIconPath 大小超过 40kb 微信小程序开发的过程之中总会出现这样或者那样的错误,需要我们耐 ...