PHPでサイトのタイトルを取得 2010年03月30日 過去Blog php • サイトタイトル (.*?)/i”, $html, $matches) ) { //(3) return $matches[1]; } else { return false; } } ?> 参照元:http://creazy.net/2008/05/php_get_page_title_sample.html how to cure depression
サーバの負荷(メモリ使用量を調べる)sar -r 2010年03月31日 過去Blog sarコマンドを利用するために必要なシステムをインストール # yum install -y sysstat phpでデータを抜き出す $pp = popen('/usr/bin/sar -r 1 1', 'r'); while(!feof($pp)): var_dump(fgets($pp)); endwhile; pclose($pp); $pp = popen('/usr/bin/… この記事の続きを読む
mac でプリントスクリーン 2010年10月22日 過去Blog http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q148021424 上記サイトからの転載です。 Shift+コマンド+3(テンキーの出ない3) これで画面全体 Shift+コマンド+4(テンキーの出ない4) これで、指定範囲 デスクトップにピクチャファイルとして保存されています。ダブルクリックするとプレビューで見られます。フ… この記事の続きを読む
PHP strstr stristr ある文字列が含まれるかどうか調べる 2010年06月11日 過去Blog $string = 'Hello World!'; if(stristr($string, 'earth') === FALSE) { echo '"earth" not found in string'; } // 出力は "earth" not found in string となります 参照元:http://www.php.net/manual/ja/function.st… この記事の続きを読む
この投稿へのコメント
コメントはまだありません。