Save current page as HTML to server

后端 未结 6 1811
一生所求
一生所求 2020-11-29 19:05

What approach could someone suggest to save the current page as an HTML file to the server? In this case, also note that security is not an issue.

I

6条回答
  •  心在旅途
    2020-11-29 19:26

    If you meant saving the output of a page in a file, you can use buffering to do that. The function you need to use are ob_start and ob_get_contents.

    
    Your page content bla bla bla bla ...
    
    
    

    This will save the content of the page in the file yourpage.html.

提交回复
热议问题