The most commonly used code to get the html code from a url or web page is the cURL function. Although possible options are much less with the File() function, the PHP File() function is a much faster and simpler way to get the html code from any web page.
Getting the HTML code from a web page couldn't be any simpler, faster or easier.