
13-02-2006, 22:19
|
|
|
|
חבר מתאריך: 23.11.04
הודעות: 218
|
|
בתגובה להודעה מספר 1 שנכתבה על ידי ThePredator שמתחילה ב "אם איזו פונקציה אני יכול לשאוב קוד HTML מאתר כלשהו?"
file_get_contents
(PHP 4 >= 4.3.0, PHP 5)
file_get_contents -- Reads entire file into a string
Description
string file_get_contents ( string filename [, bool use_include_path [, resource context [, int offset [, int maxlen]]]] )
Identical to file(), except that file_get_contents() returns the file in a string, starting at the specified offset up to maxlen bytes. On failure, file_get_contents() will return FALSE.
file_get_contents() is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance.
|