$blocksize ) { if ( ($insize+$blocksize) > $boxsize ) { break; } $insize += $blocksize; } echo $inblock ."\n";