php提示 Warning: touch() [function.touch]: Utime failed: Permission denied in
发布:smiling 来源: PHP粉丝网 添加日期:2014-09-20 22:35:09 浏览: 评论:0
在使用php程序时提示Warning: touch() [function.touch]:Utime failed:Permission denied in错误,下面一起来看看此问题的解决办法.
使用timthumb.php出现Warning: touch() [function.touch]: Utime failed: Permission denied in错误.
我们先来看一下touch()函数例子,touch() 函数设置指定文件的访问和修改时间.
touch(filename,time,atime)
例子,代码如下:
<?php touch("test.jpg");?>
应用例子时出现错误:用timthumb.php来做缩略图,本地测试很OK,但是放到vps上面就出现下面的错误错误提示:
Warning: touch() [function.touch]: Utime failed: Permission denied in /home/wordpress/wp-content/themes/zkeyword/library/timthumb.php on line 199
A TimThumb error has occured
The following error(s) occured:Could note create the index.html file - to fix this create an empty file named index.html file in the cache directory.
从字面上理解,是创建缓存的cache文件没有权限,我就直接将cache的权限设为0777,但是还是不行,还是提示权限不足,进入cache目录后还有一个index.html文件,将其设为0777,问题就解决了.
Tags: Warning: touch() [function touch]:
相关文章
- ·Warning: mysql_fetch_array():(2013-11-28)
- ·Warning: Missing argument 3 for photo_bigclass()(2013-11-28)
- ·Warning: mssql_connect() [function.mssql-connect]:(2013-11-28)
- ·Warning: mysql_fetch_assoc() expects parameter 1 to be resource(2013-12-02)
- ·php 提示Warning: mysql_fetch_array() expects(2014-01-09)
- ·Warning: mysql_num_rows():(2014-01-14)
- ·Warning:chmod() has been disabled for security reasons in(2014-08-23)
- ·php提示Warning: file_get_contents(): couldn’t resolve(2014-09-20)
- ·PHP Warning:phpinfo() has been disabled函数禁用(2014-09-21)
- ·php 提示Warning: mysql_fetch_array() expects(2014-09-21)
- ·php下foreach()错误提示Warning: Invalid argument supplied for foreach()(2014-09-22)
- ·phpmyamdin安装出现Warning: require(./libraries/Error_Handler.class.php) 错(2015-04-04)
- ·PHP Warning: implode() [function.implode]: Invalid(2015-04-08)
- ·php下foreach提示Warning:Invalid argument supplied for foreach()的解决方法(2021-04-25)
- ·php提示Warning:mysql_fetch_array() expects的解决方法(2021-05-03)
- ·PHP Warning: Module 'modulename' already loaded in问题解决办法(2021-05-16)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)