Changed to fopen because I was receiving errors out of the blue from file_get_contents