I have been using file_get_contents() in between fopen() and fclose() statements. Is this necessary? or am I actually opening the file twice by doing so?
You posted the same question twice. The answer is the same. 😉