2008-07-01から1ヶ月間の記事一覧

PHP MySQL 文字化け

MySQLにログインして文字コードの確認 SHOW VARIABLES LIKE 'char%'; PHPから文字コードをセットする mysql_query("SET NAMES sjis",$db); http://puchiko.lowtech.ne.jp/?itemid=349&catid=27 http://itpro.nikkeibp.co.jp/article/COLUMN/20070614/274802/…

PHP エスケープ

preg_quote 正規表現クオート htmlspecialchars HTMLエンティティ化

Google AdSense グーグルアドセンス 対象範囲 HTMLコメント

対象にする コンテンツ 対象外にする コンテンツ

よく使うコンテントタイプ Content-Type

text Content-Type: text/plain Content-Type: text/html Content-Type: text/css Content-Type: text/xml 画像 Content-Type: image/png Content-Type: image/jpeg Content-Type: image/gif application Content-Type: application/zip Content-Type: appli…

iPhone/iPod touch 仮想ウィンドウ幅

<meta name="viewport" content="width=1024" />http://travel-lab.info/tech/pblog/article.php?id=157</meta>

Twiter クライアント source リスト 一覧

BeTwittered CNN Alert Chattr Chirrup Facebook GtkTwitter Hahlo MZ3 MoodBlast NatsuLion Netvibes OutTwit P3:PeraPeraPrv Perl Net::Twitter Ping.fm PocketTweets QSTwitter Snitter ThinCloud Tweetr Twimp Twippera Twit TwitBin TwitKu TwitTerm Tw…

全角スペース 半角スペース trim

PHP

$trimd = preg_replace('/^[ ]*(.*?)[ ]*$/u', '$1', $input);http://www.phppro.jp/qa/411

絵文字 削除 取り除く 抑止

PHP

mb_substitute_character('none'); $str = mb_convert_encoding($str, 'SJIS', 'SJIS'); ソフトバンク $in_string = '絵文字$G!削除';$pattern = '/[\\x1B][\\x24][G|E|F|O|P|Q][\\x21-\\x7E]+([\\x0F]|$)/'; preg_match_all($pattern, $in_string, $arr); $…

Ubuntu php.ini

PHP

/etc/php5/apache2/php.ini

vi 検索

/検索文字列

temp

はてなダイアリ利用方針 ソース貼る その他下書き

ego

ttp://ao-rog.blogspot.com/ ttp://b.hatena.ne.jp/R-K/ ttp://b.hatena.ne.jp/entrylist?sort=eid&url=http%3A%2F%2Ftwitter.com%2FR_K%2F ttp://b.hatena.ne.jp/entrylist?url=http%3A%2F%2Fd.hatena.ne.jp%2FR-K%2F&sort=eid ttp://clip.livedoor.com/cli…