file_get_contents

(PHP 4 >= 4.3.0)

file_get_contents -- Načíta celý súbor do reťazca

Popis

string file_get_contents ( string nazovsuboru [, int pouzivat_cesty_include])

Táto funkcia je identická s funkciou file(); file_get_contents() však vráti obsah načítaného súboru ako reťazec.

Poznámka: This function is binary-safe.

Tip: You can use a URL as a filename with this function if the "fopen wrappers" have been enabled. See fopen() for more details.

Pozri tiež: fgets(), file(), fread(), include() a readfile().