so lets say you want to download all the html code form a url from a website.

well, with php is easy all you have to do is use the file_get_contents() function

hope that helps