2011年11月9日 星期三

mac php 開發

. 再次設定了 CodeIgniter ,將 index.php 消除
。設定 etc/apache2/httpd.conf

將 AllowOverride 改為  all
確認 Order 順序是  allow,deny
設定 Allow from 為 all

sudo apachectl restart 後

還要去新增 .htaccess



"defaults write com.apple.finder AppleShowAllFiles -bool true"

將所有的隱藏檔打開




RewriteEngine on
RewriteBase /CodeIgniter/
RewriteCond $1 !^(index\.php|images|robots\.txt|$)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

RewriteBase 要設對
不然會被導到 web root
發生 找不到 /index.php 的問題

xdebug 還未裝
hrm 專案下下來了

設好 database 連線為 127.0.0.1
移除了 index.php
登入時直接把 網頁吐出來 沒有自動替換文件內容
不確定是 CodeIgniter 2.0 跟 1.7 有差
還是 PHP 5 跟 PHP 6

沒有留言:

張貼留言