[thelist] Problem with php filesize()
CDitty
mail at redhotsweeps.com
Sat Jun 16 23:45:09 CDT 2001
Ok...This is weird. I have been playing with this and now some of the file
sizes will display. It doesn't give the sizes for the image files and only
for 1 php file.
statistics.htm 2881
upload.htm 2346
tab2-3x5.gif
tab2-3x5.php
image.php 5393
cditty.php
list.htm 3823
shamrockrow.php
statsbydate.htm 2057
cditty.jpg
index.htm 76
shamrockrow.gif
I checked the file ownership on a hunch and that isn't it. Any one have
any ideas?
Chris
At 10:29 PM 6/16/2001, you wrote:
>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>";
> }
>}
>?>
More information about the thelist
mailing list