remote content warning suppression

File_get_contents which is giving warnings has been replaced with
@file_get_contents to suppress errors and header response is checked for
validity and returns null if any error