file_get_contents()if( trim( file_get_contents( '/data/1.txt' ) ) == '' ){ echo '文件/data/1.txt 无内容';}