현재 위치: > 함수 카테고리 모음> file_get_contents

file_get_contents

전체 파일을 문자열로 읽으십시오
이름:file_get_contents
분류:파일 시스템
사용 언어:php
한 줄 설명:파일을 문자열로 읽습니다.

实例

<span class="token php language-php"><span class="token delimiter important"><? php</span>
<span class="token keyword">echo</span> <span class="token function">file_get_contents</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出 :

 테스트 텍스트가있는 테스트 파일입니다.
유사한 함수
  • 구성 파일을 구문 분석하십시오 parse_ini_file

    parse_ini_file

    구성파일을구문분석하십시오
  • 현재 Umask를 변경하십시오 umask

    umask

    현재Umask를변경하십시오
  • 데이터 (메타 데이터는 아님)를 파일과 동기화합니다 fdatasync

    fdatasync

    데이터(메타데이터는아님)를파일과동기화
  • 파일 또는 URL을 엽니 다 fopen

    fopen

    파일또는URL을엽니다
  • 파일 포인터 위치를 되 감습니다 rewind

    rewind

    파일포인터위치를되감습니다
  • 파일의 마지막 액세스 시간을 가져옵니다 fileatime

    fileatime

    파일의마지막액세스시간을가져옵니다
  • 파일이 http post를 통해 업로드되어 있는지 확인하십시오 is_uploaded_file

    is_uploaded_file

    파일이httppost를통해업로드되어있
  • 파일 상태 캐시를 지우십시오 clearstatcache

    clearstatcache

    파일상태캐시를지우십시오