Home  >  Article  >  Backend Development  >  php的touch创建文件失败

php的touch创建文件失败

WBOY
WBOYOriginal
2016-06-06 20:32:012610browse

Warning: touch() [function.touch]: Unable to create file C:/wamp/www/phplx/php138/data/log/curr.log because No such file or directory in C:\wamp\www\phplx\php138\include\log.class.php on line 32

这个一般是什么原因造成的呢

回复内容:

Warning: touch() [function.touch]: Unable to create file C:/wamp/www/phplx/php138/data/log/curr.log because No such file or directory in C:\wamp\www\phplx\php138\include\log.class.php on line 32

这个一般是什么原因造成的呢

你要自己先创建完整的路径

你是直接创建文件,文件夹没处理吧?看这样子应该是文件夹不存在

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn