Re: [PHP] Help with Filesize

2003-01-28 Thread Maxim Maletsky
Try fstat() function on the file pointer - it will return you the various results, including its size. -- Maxim Maletsky [EMAIL PROTECTED] Rodrigo Corrêa <[EMAIL PROTECTED]> wrote... : > > How do i use the function filesize, because i´m using like: > > I just want associate the variable $b

[PHP] Help with Filesize

2003-01-27 Thread Rodrigo Corrêa
How do i use the function filesize, because i´m using like: I just want associate the variable $body with a html file $file_name = 'c:/templates/resp_rep_efetiva_contrato.php'; $fd = fopen($file_name,"r"); line 27 $size = filesize($file_name); / Dá erro aqu