Re: 4.0.8-dev filesize function broken now?
| From: | Frank M. Kromann | Date: | Fri, 28 Sep 2001 19:10:16 +0000 |
| Subject: | Re: 4.0.8-dev filesize function broken now? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-9607@lists.php.net to get a copy of this message | ||
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 - jasendorf@lcounty.com
> 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: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>