O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

file_get_contents

Synopsis

string file_get_contents(string path[, bool include [, resource context
[, int offset [, int maxlen ]]]] )

Reads the file at path and returns its contents as a string, optionally starting at offset. If include is specified and is true, the include path is searched for the file. Length of the returned string can also be controlled with the maxlen parameter.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required