山口母子殺害事件
2007 / 07 / 24 ( Tue ) |
phpMyAdminの設定
2007 / 07 / 22 ( Sun ) 細かい部分は環境に合わせて変更。
config.inc.php $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/'; $cfg['Servers'][$i]['auth_type'] = 'config'; #.htaceessを使用した認証 $cfg['Servers'][$i]['auth_type'] = 'http'; #ユーザー名とパスワードを入力 $cfg['Servers'][$i]['user'] = 'MySQLで設定したユーザー名'; $cfg['Servers'][$i]['password'] = 'MySQLで設定したパスワード'; $cfg['DefaultLang'] = 'ja-euc'; $cfg['PmaNoRelation_DisableWarning'] = 'true'; $cfg['DefaultCharset'] = 'euc-jp'; |
PHP フィールドの値が数値かどうかをチェック
2007 / 07 / 08 ( Sun ) numberフィールドの値が数値かどうかを is_numeric 関数によりチェックする
if (is_numeric($key)) { 数字の時の処理 } else { 数字じゃなかったときの処理 } |
mysql.sock
2007 / 07 / 08 ( Sun ) mysql.sock が無いと言われたとき
/etc/my.cnf に [mysqld] socket=/private/tmp/mysql.sock port = 3306 とか書くといいかも。 |
|
| ホーム |
|

