//文件管理
$file = 'zhang.txt';
$res = fopen( $file, 'rb' );
//for( $i=0; $i<20; $i++ ){
//// $res = fopen( $file, 'wb' );
// fwrite( $res, '我是:' . $i . PHP_EOL );
//}
//while( $row = fgets( $res ) )
// echo $row . '<br>';
//while( !feof( $res ) ){
// echo fgetss( $res, 1024, '<p>' ) . '<br>';
//}
//while( !feof( $res ) ){
// echo fgetc( $res );
//}
//fclose( $res );
//readfile( $file );
//echo readfile( $file );
//$arr = file( $file );
//
//print_r( $arr );
//echo file_get_contents( $file );
//echo fread( $res, 102 );
//$str = 'zhangrongquanxxxxxxx';
//file_put_contents( $file, $str . PHP_EOL, FILE_APPEND | LOCK_EX );
//copy( $file, 'rong.txt' );
//rename( 'rong.txt', 'quan.tm' );
//unlink( 'quan.tm' );
echo time();
echo '</p>';
echo fileatime( $file );
echo '</p>';
echo filemtime( $file );
echo '</p>';
echo filesize( $file );
echo '</p>';
$arr = pathinfo( $file, PATHINFO_FILENAME );
print_r( $arr );
echo '</p>';
echo realpath( $file );
echo '</p>';
$arr = stat( $file );
print_r( $arr );