2012-12-01から1ヶ月間の記事一覧
MySQL接続 mysql -h ホスト名 --p ポート -u ユーザー -p パスワード ポート確認 netstat cat /etc/services |grep mysql nmap localhost ポート設定 /etc/my.cnf port=3306 amazon ec2 ポート開放 Security Groups → Inbound → ADD → Apply mysqlユーザー編集 …
use Digest::SHA 'sha512_hex';my $sha1_sum = sha512_hex('abcde');
/** Ajaxによるテンプレートの挿入 * @param target : 表示先のid * @param url : url * @return なし */ function doAjax(targetId,url,sendForm) { var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp) { xmlhttp.onreadystatechange = f…
ttp://www.express.nec.co.jp/linux/distributions/knowledge/system/crond.html■crontab で実行スケジュール設定 bash-3.2$ crontab -l 46 14 * * * /pub/home/nicos/bat/BAT_○○.sh 48 13 22 * * /pub/home/nicos/bat/BAT_vp_○○.sh 22 16 22 * * /pub/home/…
prompt create table mun_hist_user_trade_opt create table mun_hist_user_trade_opt ( user_trade_id CHAR(16) not null , -- 会員取引ID manager_id VARCHAR2(12) not null , -- 更新者ID constraint pk_mun_hist_user_trade_opt primary key ( user_tr…
とほほ ttp://www.tohoho-web.com/wwwperl.htm ■実行 基本www/cgi-binで実行可能になっている ドキュメントルート以下で実行するには httpd.conf に ExecCGIを追加 Options Indexes FollowSymLinks ExecCGIAddHandler cgi-script .cgiパーミッションは755…
■exec(コマンド,アウトプット,戻り) $ans = exec(コマンド,$output,$ret); $ansには最終行のみしか入らない。 $outputには、各行が配列で返ってくる $retにはエラーコード エラーメッセージを得るには、コマンド 2>&1apacheユーザーでは、実行権限の無いphpファイルは…
■チェックされているラジオボタンのvalueを取得 $("input[@name=stat]:checked").val()