Hi guys
can anyone tell me why it doesn't show "filesize" data when I put
fread(txt file, filesize(path));
It only shows the content of the file.
fread function problem
Moderator: General Moderators
Re: fread function problem
Because you're using fread() maybe??
Need more info. Whole code?
Need more info. Whole code?
Re: fread function problem
Hi jackpf
this is the code
$fp4= "$DOCUMENT_ROOT/orders/orders.txt.";
$content = fopen($fp4, "r");
echo fread($content, filesize($fp4));
Thanks
this is the code
$fp4= "$DOCUMENT_ROOT/orders/orders.txt.";
$content = fopen($fp4, "r");
echo fread($content, filesize($fp4));
Thanks
Re: fread function problem
Well, if you just want the filesize, then there's no need to use fread().
Try just
Try just
Code: Select all
echo filesize($fp4);