天空是藍色的

          做好軟件為中國 #gcc -c helloworld.c -o helloworld.o //編譯目標文件 #gcc helloworld.o -o helloworld //編譯成可執行exe #helloworld //運行exe
          數據加載中……
          想用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 閱讀(1041) 評論(0)  編輯  收藏 所屬分類: PHP

          主站蜘蛛池模板: 望奎县| 威信县| 安陆市| 丹阳市| 南陵县| 湄潭县| 阳泉市| 喀什市| 固镇县| 江阴市| 房山区| 阜新市| 望江县| 广汉市| 乐东| 迁安市| 宣城市| 杨浦区| 龙井市| 廊坊市| 乌鲁木齐县| 苏州市| 定西市| 临夏县| 嘉禾县| 兴国县| 大洼县| 清远市| 辽中县| 竹溪县| 昌图县| 浦北县| 娱乐| 河南省| 赤水市| 永善县| 华池县| 乌审旗| 芦溪县| 中方县| 临沧市|