Jump to content


Photo

filesize() issue


  • Please log in to reply
No replies to this topic

#1 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 19 May 2006 - 01:42 PM


if I type literal text for filesize I can get the file's size. If I reference the filename by string then it returns 0


Example:

//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?
Thanks,

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users