When timthumb. php is used, the following error occurs: Warning: touch () [function. touch]: Utime failed: Permission denied in.
Let's take a look at the touch () function example.
The touch () function sets the access and modification time of the specified file.
Touch (filename, time, atime)
Example
The code is as follows: |
|
<? Php Touch ("test.jpg "); ?> |
An error occurred in the application example.
Use timthumb. php for thumbnails. The local test is OK, but the following error message is displayed when you put it on the 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:
Cocould note create the index.html file-to fix this create an empty file named index.html file in the cache directory.
The hosts file is set to 0777, and the problem is solved.