file_get_contents

(PHP 4 = 4.3.0)

file_get_contents -- Reads entire file into a string

Description

string file_get_contents ( string filename [, int use_include_path])

Identical to file() , except that file_get_contents() returns the file in a string.

注意 この関数はバイナリデータに対応しています。

ティップ "fopen wrappers"が有効になっていると、この関数のファイル名としてURLを使用することが出来ます。詳細は fopen() を参照して下さい。

See also: fgets() , file() , fread() , include() , and readfile() .