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? Quote Link to comment https://forums.phpfreaks.com/topic/10003-filesize-issue/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.