read_file
read_file($file,$timeout=COMMAND_TIME,$encoding="windows-1251"); - read the specified file
The function accepts parameters as input:
$file – path to the file to read. It can be either absolute or relative (relative to the script folder).
$encoding – encoding in which the result of reading the file will be returned
$timeout – the maximum time to perform this operation (in seconds), by default - 60 seconds, if the operation is not completed during this time, the script continues to run further.
After testing, the function returns the result of its work to the script :
content – the content of the file in the specified encodingfalse – the operation is not performed (the file is not found)