create_html.php创建公共htm静态页面

&lt;?php<br /> $php=$_GET[&quot;php&quot;];<br /> $html=$_GET[&quot;html&quot;];<br /> ob_start();<br /> require $php;<br /> $file=ob_get_contents();<br /> ob_end_clean();<br /> $fp=@fopen($html,&quot;w&quot;) or die(&quot;写方式打开文件失败,请检查程序目录是否为可写&quot;);//配置conn.php文件<br /> @fputs($fp,$file) or die(&quot;文件写入失败,请检查程序目录是否为可写&quot;); <br /> @fclose($fp);<br /> echo &quot;生成成功!&quot;;<br /> ?&gt;<br /> <br /> 为什么没用file_put_contents这个函数呢?
RangeTime:0.007313s
RangeMem:204.23 KB
返回顶部 留言