To PHP do not understand, do not know difficult, catch URL page code, save into Html,url is also the site

Source: Internet
Author: User
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 '));
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.