I dont think this is an issue with filesize() but with current working directory.
$flename must have the fulle path to the file, or the current working directory must be where $flename is located. I know there has been changes to how this works over the time, though I don't remeber when exactly. - Frank > I have a little script which moves some files aournd and this line: > > echo "<tr><td>$flename " . filesize("$flename") . "(bytes) has been changed > to $newname and has been moved!</td></tr>\n"; > > > Is getting this error (don't let the words 'Microsoft Word' throw you off, > they are part of the file name): > > Warning: stat failed for Microsoft Word - 34-493.pdf (errno=2 - No such file > or directory) in d:\InetPub\wwwroot\cc\resolutions\rmdres.php on line 53 > But then I get the right message returned: > Microsoft Word - 34-493.pdf (bytes) has been changed to 34-384.pdf and has > been moved! > Warning: stat failed for Microsoft Word - 34-384.log (errno=2 - No such file > or directory) in d:\InetPub\wwwroot\cc\resolutions\rmdres.php on line 63 > > This used to work with 4.0.6-dev and before... > > --------------------- > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Nullum magnum ingenium sine mixtura dementiae fuit > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]