[SOLVED] Filesize != Filesize
Posted: Mon Nov 29, 2004 7:38 am
This problem is making me insane:
When I upload a 24kb imagefile I get this for size1 and size2:
So WHY aren't they the same size, as they should be???
(This is the simplified main problem of this viewtopic.php?t=28117 question.)
Code: Select all
$ufn="tmp/".basename($_FILES['imgfile']['name']);
move_uploaded_file($_FILES['imgfile']['tmp_name'],$ufn);
$content_file=implode("", file($ufn));
$size1=$_FILES['imgfile']['size'];
$size2=strlen($content_file);Code: Select all
size1: 24739
size2: 17728(This is the simplified main problem of this viewtopic.php?t=28117 question.)