Windows環境下PHP中使用redis下載 dll檔案php_redis.dll 擴充 For PHP5.4.x PHP5.4.x 的 redis 擴充 php_redis.dll測試平台:Windows XPx32 (FastCGI PHP5.4.9 Nginx 1.4.0)包含 Non Thread Safe 和 Thread Safe 兩個版本首先把php_redis.dll 和 php_igbinary.dll 放入PHP的ext檔案夾,然後在php.ini設定檔裡添加如下代碼:extension=php_igbinary.dllextension=php_redis.dllThinkphp 去除index去除index.php1.httpd.conf設定檔中載入了mod_rewrite.so模組 //在APACHE裡面去配置#LoadModule rewrite_module modules/mod_rewrite.so把前面的警號去掉2.AllowOverride None 講None改為 All //在APACHE裡面去配置 (注意其他地方的AllowOverride也統統設定為ALL)AllowOverride none 改 AllowOverride ALLOptions NoneOrder allow,denyAllow from all3.確保URL_MODEL設定為2,在項目的設定檔裡寫return Array( 'URL_MODEL' => '2',)4 .htaccess檔案必須放到跟目錄下建立文字文件另存新檔.htaccess檔案:RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
以上就介紹了Think安裝redis 去除index,包括了redis,think方面的內容,希望對PHP教程有興趣的朋友有所協助。