[thelist] Problem with php filesize()
CDitty
mail at redhotsweeps.com
Sat Jun 16 22:30:13 CDT 2001
Does anyone know if there are any problems with filesize in php
4.0.4pl1? I am simply trying to get the filesize of a graphic and it keeps
showing as 0 bytes.
My code will retrieve a file listing but not the size. Any one know? Here
is my code.
<?
$new_file_name = "cditty.jpg";
$userid = "cditty";
$handle = opendir("/home/$userid");
while(false!==($file = readdir($handle))){
if($file == "cditty.jpg"){
echo $file . " " . filesize($file) . "<br>";
}
}
?>
Thanks
Chris
More information about the thelist
mailing list