天空是藍色的

          做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執行exe #helloworld //運行exe

          公告


           

          常用鏈接

          留言簿(9)

          隨筆分類(149)

          隨筆檔案(151)

          文章分類(31)

          文章檔案(31)

          C編譯器

          leemay`s

          朋友的blog

          相冊

          計算機原理

          鏈接

          搜索

          •  

          積分與排名

          • 積分 - 450217
          • 排名 - 121

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          想用wordpress的Permalink,但是空間不支持mod_rewrite,連index.php也不行~~
          想用wordpress的Permalink,但是空間(萬網滴)不支持mod_rewrite,連index.php也不行~~
          用了index.php/%year%/%monthnum%/%day%/%postname%/
          訪問不會出錯但是不會跳轉到正常的頁面,所以我想了個方法

          理論上的代碼,還沒有實現

          <?php
          #$base_uri = index.php/page/welcome.html 頁面標志 = page
          #
          $base_uri = index.php/entity/2005/12/25/4.index.html 頁面標志 = entity
          #
          $base_uri = index.php/catalog/wordpress.html 頁面標志 = catalog
          $base_uri = $_SERVER['REQUEST_URI'];


          #通過硬面碼字符串處理得到下邊兩個值
          $remark = "";//拿到頁面的標志參數
          $id = ""//拿到參數值


          if($remark == "page"){
              
          include "index.php?page=".$id;
              
          return;
          }
          else if($remark == "category"){
              
          include "index.php?catalog=".$id;
              
          return;
          }
          else if($remak == "entity"){
              
          include = "index.php?p=".$id;
          }

          ?>

          posted on 2005-12-26 16:09 bluesky 閱讀(1039) 評論(0)  編輯  收藏 所屬分類: PHP

          主站蜘蛛池模板: 安达市| 南木林县| 灌南县| 柳林县| 巩留县| 永仁县| 泸西县| 定远县| 翼城县| 阿勒泰市| 郁南县| 济宁市| 汉阴县| 江源县| 古蔺县| 日喀则市| 英超| 抚顺县| 夹江县| 英山县| 民县| 屏南县| 晋宁县| 岑溪市| 冕宁县| 佛冈县| 灵璧县| 尖扎县| 白朗县| 武宁县| 金平| 柳州市| 怀柔区| 福泉市| 安溪县| 霍城县| 霍州市| 西林县| 惠水县| 泾源县| 邹城市|