Last active
September 28, 2018 13:37
-
-
Save southill/c9160d43d75a4332258cf2f39cdde61c to your computer and use it in GitHub Desktop.
php2html.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
error_reporting(0); | |
require_once('../index.php'); | |
$content = ob_get_contents();//取得php页面输出的全部内容 | |
$fp = fopen("../index.html", "w"); | |
fwrite($fp, $content); | |
fclose($fp); | |
header('Location:../index.html'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment