欧美日韩不卡一区二区三区,www.蜜臀.com,高清国产一区二区三区四区五区,欧美日韩三级视频,欧美性综合,精品国产91久久久久久,99a精品视频在线观看

php語言

PHP生成靜態(tài)HTML頁(yè)面最簡(jiǎn)單方法示例

時(shí)間:2024-12-20 12:30:38 php語言 我要投稿
  • 相關(guān)推薦

PHP生成靜態(tài)HTML頁(yè)面最簡(jiǎn)單方法示例

  PHP生成靜態(tài)HTML頁(yè)面最簡(jiǎn)單方法來分享給大家,跟隨小編去看看吧!

  PHP文件名:dome.php

  復(fù)制代碼 代碼如下:

  <?php

  $string = 1;

  ob_start();

  @readfile("templets/list.html");

  $text = ob_get_flush();

  $myfile = fopen("list.html","w");

  $text = str_replace ("{counent}",$string,$text);

  fwrite($myfile,$text);

  ob_clean();

  ?>

  模板文件名:templets/list.html

  復(fù)制代碼 代碼如下:

  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

  <html>

  <head>

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <title>Insert title here</title>

  </head>

  <body>

  </body>

  <table width="500" border="0" cellpadding="5" cellspacing="1" align="center" bgcolor="#add3ef">

  <tr bgcolor="#eff3ff">

  <td>用戶:{counent_user} 標(biāo)題:{counent_title} 發(fā)布時(shí)間:{counent_lastdate}</td>

  </tr>

  <tr bgcolor="#fff">

  <td>內(nèi)容:{counent_content}</td>

  </tr>

  </table>

  </form>

  </html></p

【PHP生成靜態(tài)HTML頁(yè)面最簡(jiǎn)單方法示例】相關(guān)文章:

php技術(shù)生成靜態(tài)頁(yè)面的方法07-28

生成PHP網(wǎng)站頁(yè)面靜態(tài)化的方法06-14

如何生成靜態(tài)頁(yè)面的PHP類09-15

php生成靜態(tài)頁(yè)面的詳細(xì)教程10-15

php生成WML頁(yè)面方法08-05

PHP使用ob-start生成html頁(yè)面11-09

php靜態(tài)頁(yè)生成方法10-25

php動(dòng)態(tài)網(wǎng)頁(yè)怎么轉(zhuǎn)換成html靜態(tài)頁(yè)面08-08

PHP延遲靜態(tài)綁定示例分享10-15