-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
file_get_contents
Description
Returns the contents of the specified file.
Syntax
string file_get_contents (string $filename[, bool $include_path])
Parameter $filename
Expected type: String
Description: The name of the file to get the contents of
Parameter $include_path
Expected type: Boolean
Description: If true, will search for the file in the directories specified by the "include_path" directive in php.ini (see http://www.php.net/ini.core#ini.include-path for more info). Default is false.
Return value
Expected type: String
Description: Returns the contents of the specified file
Notes
- Equivalent to the PHP function of the same name
- Only defined in PHP 4.2.x or lower
- Doesn't work if fopen or fclose have been disabled
- Returns false if there's a problem; otherwise returns the contents of the specified file.
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.036 seconds with 13 queries.
- Forum Search