天空是藍色的

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

          公告


           

          常用鏈接

          留言簿(9)

          隨筆分類(149)

          隨筆檔案(151)

          文章分類(31)

          文章檔案(31)

          C編譯器

          leemay`s

          朋友的blog

          相冊

          計算機原理

          鏈接

          搜索

          •  

          積分與排名

          • 積分 - 449406
          • 排名 - 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 閱讀(1036) 評論(0)  編輯  收藏 所屬分類: PHP

          主站蜘蛛池模板: 沙坪坝区| 临汾市| 钟山县| 辉县市| 驻马店市| 寿宁县| 乐陵市| 神农架林区| 乌拉特前旗| 霍林郭勒市| 尼木县| 南京市| 新建县| 中卫市| 德兴市| 深水埗区| 孟州市| 旬邑县| 大石桥市| 图们市| 景德镇市| 石首市| 安泽县| 东丽区| 马龙县| 金川县| 宝丰县| 宣威市| 嫩江县| 克东县| 广南县| 江源县| 城固县| 郎溪县| 昌都县| 鹿泉市| 阜新市| 凭祥市| 温泉县| 锡林郭勒盟| 合山市|