Guardati anche:

file_get_contents();

è piu veloce per le cose semplici: ritorna una stringa con la pagina html.