Use either the file() function and loop through the array, stremaing it into a file (created using the fopen(), fwrite() functions... or you could use fopen() to begin reading the page and fwrite() it in the same manner above. Either way, read up on those functions and you'll be good.
amc