Join Up!
104887 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousfile_existsfilenext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | Spanish

file_get_contents

(PHP 4 CVS only)

file_get_contents -- Liest die gesamte Datei in einen String

Beschreibung

string file_get_contents ( string filename [, int use_include_path])

Diese Funktion ist mit readfile() identisch, außer dass file_get_contents() die Datei in einem String zurückgibt.

Anmerkung: Diese Funktion ist binary safe.

Tipp: Mit dieser Funktion können Sie eine URL als Dateinamen verwenden, falls Sie fopen wrappers ermöglicht haben. Mehr Details, wie Sie den Dateinamen angeben müssen finden Sie bei fopen(). Eine Liste der unterstützten URL Protokolle finden Sie unter Anhang I.

Siehe auch: fgets(), file(), fread(), include() und readfile().

User Contributed Notes
file_get_contents
add a note about notes
There are no user contributed notes for this page.
previousfile_existsfilenext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST