get_file( $path )

Source

function get_file( $path ) {

	$path = realpath( $path );

	if ( ! $path || ! @is_file( $path ) ) {
		return '';
	}

	return @file_get_contents( $path );
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.