2012年7月6日金曜日

MAMPのMySQLにターミナルからログイン

ターミナルで /Applications/MAMP/Library/bin に移動し、MySQLにログインする。
$ cd /Applications/MAMP/Library/bin
$ ./mysql -u root -p
初期パスワードは root

2012年7月3日火曜日

mod_rewrite について覚え書き

RewriteCondはRewriteRule毎に必要。


.htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule sample\.php$ index.php?abc=123