Possible Duplicate:
How do I get the HTML code of a web page in PHP?
Is there a PHP code to get the HTML code of a webpage? $html = file_get_contents('https://stackoverflow.com/questions/ask'); this doesnt work. It simply loads the webpage. I want to display the HTML code when I run the code.
Thanks in advance.