Well I tried that, however I was saving dynamically generated .XLS files. Because I was using addslashes before hand it was reporting the wrong file size.
So it was my mistake, thanks for your help! Regards, Ian Newlands "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:200211091639.43919.php-general@;gremlins.com.hk... > On Saturday 09 November 2002 14:22, Ian Newlands wrote: > > Does anyone know of a function, or a method to calculate how many bytes are > > in a string? Similar to the filesize file system function. > > > > Any help would be appreciated. > > Assuming 1 character = 1 byte, then strlen(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php