Hello everyone,
I am not sure if I am supposed to post this here but I have a problem with a php file of my wordpress site.
Let me insert the code becaus I have no idea what is the problem - $file_data = fread( $fp, 8 * 'KB_IN_BYTES' ); where the problem shows
function get_file_data( $file, $default_headers, $context = '' ) {
// We don't need to write to the file, so just open for reading.
// Pull only the first 8 KB of the file in.
$file_data = fread( $fp, 8 * 'KB_IN_BYTES' );
// PHP will close file handle, but we are good citizens.
// Make sure we catch CR-only line endings.
$file_data = str_replace( "\r", "\n", $file_data );
/**
* Filters extra file headers by context.
*
* The dynamic portion of the hook name, `$context`, refers to
* the context where extra headers might be loaded.
*
* @since 2.9.0
*
* @param array $extra_context_headers Empty array by default.
*/