"; if(( $fi = fopen( $fiName2 , "ab" )) != FALSE ){ fseek( $fi , 0 , SEEK_END ); $nowCount = ftell( $fi ); $nowCount++; if(( $fi2 = fopen( $fiName , "rb" )) != FALSE ){ fseek( $fi2 , 0 , SEEK_END ); $baseCount = ftell( $fi2 ) * $stepcount; fclose( $fi2 ); } fputs( $fi , "1" ); fclose( $fi ); if(( $nowCount % $stepcount ) == 0 ){ if(( $fi2 = fopen( $fiName , "ab" )) != FALSE ){ if( fputs( $fi2 , "1" ) != FALSE ){ if(( $fi = fopen( $fiName2 , "wb" )) != FALSE ) fclose( $fi ); } fclose( $fi2 ); } } $baseCount += $nowCount; echo $baseCount; }else{ echo "Fileopen Error!"; } ?>