To PHP do not understand, do not know difficult, grab URL page code, save into Html,url is also the site
I don't know if this is difficult,
Here for the code,
This set of Web site is the previous technician to do, I look at the source is a headache, plus the PHP is not getting started, comments are not more than a few
It was a little messy,
I do not want to move his source code, want to write a function,,
The boss always said that home open very slow, in fact, the server is a bit slow, that the entire server station has more than 10, open all the same speed
Probably this use more, so the boss old said this slow,, I compare a bit,, with static page is quick a little,,
At present, the homepage is dynamic,
I want to write a page, get the code of the homepage, save the function of HTML,, only save the code on the line, do not what pictures, etc.,
,, seek the weapon,,,
1
11
PHP HTML Source Code URL
Share to:
------Solution--------------------
File_put_contents (' index.html ', file_get_contents (' loacalhost/index.php '));