hi

How can i get the html of a given web page?..
I have the url of the web page...please help me ....very urgent...Thank you

Ditty

which web page u r asking for ?

however, if u r having url, just open that site and u can get its html by going to file option and then click "SAVE PAGE AS" option in "FILE" menu and save it as "WEB PAGE, COMPLETE".

This will create a folder with the complete css and images and a html file

I want the php code to get the html of the web page corresponding to that particular url...Actually i want to fetch something from other sites

Just use the file_get_contents() function. Very simple but make sure you place the http:// or https:// before the domain. Below is an example:

<?
$webpage_data=file_get_contents("http://www.google.com/");
echo $webpage_data;
?>
commented: smart +3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.