Home  >  Article  >  Backend Development  >  自学php 有个小问题 求高手

自学php 有个小问题 求高手

WBOY
WBOYOriginal
2016-06-23 13:39:37956browse

  test.php
//echo filesize("http://localhost:81/qq.jpg/");
echo filesize("E:/Apache/htdocs/qq.jpg/");
?>
这个filesize函数咋么这么爱报warning,
Warning: filesize() [function.filesize]: stat failed for E:/Apache/htdocs/qq.jpg/ in E:\Apache\htdocs\test.php on line 4

apache  路径没问题 到底那里错了


回复讨论(解决方案)

  大神不要嘲笑我这菜鸟

filesize("E:/Apache/htdocs/qq.jpg/");
最后的 ‘/’ 是什么意思

我在百度看的 说有时少了这个也会报warning

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