phporcaffeine Posted May 19, 2006 Share Posted May 19, 2006 if I type literal text for filesize I can get the file's size. If I reference the filename by string then it returns 0Example://DOES NOT WORK FOR ME$path = "file.txt";$size = filesize($path);echo $size;//THIS DOES WORK FOR ME$size = filesize("file.txt");echo $size;Anyone have any ideas what I might be doing wrong? Link to comment https://forums.phpfreaks.com/topic/10003-filesize-issue/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.