<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6466262560100490408</id><updated>2012-02-16T18:56:54.990+09:00</updated><category term='Filter'/><category term='Twitter'/><category term='P2'/><category term='Pixy'/><category term='Db'/><category term='Cache'/><category term='Controller'/><category term='Sample'/><category term='Amazon'/><category term='P3'/><title type='text'>PHPオレームワーク日記</title><subtitle type='html'>PHPでオレオレフレームワークを作るのだ</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6466262560100490408.post-8233526629740793990</id><published>2011-09-30T22:02:00.002+09:00</published><updated>2011-09-30T22:02:44.450+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='P2'/><category scheme='http://www.blogger.com/atom/ns#' term='Twitter'/><title type='text'>Twitter Streaming APIがHTTPS必須になったのに対応</title><content type='html'>P2_Service_TwitterのStreaming API用メソッドはこれまでhttpでTwitterのAPIに接続していたが、日本時間の今日からhttpsでないと接続できなくなったので対応した。&lt;br /&gt;&lt;br /&gt;Twitterの他のAPIは既にOAuth（またはXAuth）が必須だが、Streaming APIだけはまだBasic認証で接続できる。これについても今後変更するようだ。&lt;br /&gt;ちょっと面倒。&lt;br /&gt;まあ以前にOAuth自体には対応させといたので、それをStreaming APIにも適用するようにするだけだが．．．&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6466262560100490408-8233526629740793990?l=phpow.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/8233526629740793990/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://phpow.blogspot.com/2011/09/twitter-streaming-apihttps.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/8233526629740793990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/8233526629740793990'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/2011/09/twitter-streaming-apihttps.html' title='Twitter Streaming APIがHTTPS必須になったのに対応'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6466262560100490408.post-3560767186859381560</id><published>2011-09-29T22:30:00.001+09:00</published><updated>2011-09-29T22:30:06.538+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='P2'/><category scheme='http://www.blogger.com/atom/ns#' term='Sample'/><category scheme='http://www.blogger.com/atom/ns#' term='Cache'/><category scheme='http://www.blogger.com/atom/ns#' term='Controller'/><category scheme='http://www.blogger.com/atom/ns#' term='Pixy'/><category scheme='http://www.blogger.com/atom/ns#' term='Db'/><category scheme='http://www.blogger.com/atom/ns#' term='P3'/><category scheme='http://www.blogger.com/atom/ns#' term='Amazon'/><title type='text'>P3の Controller、 Cache等を更新</title><content type='html'>P3_Controllerは主にリファクタリング。文字コード変換などで無駄な処理をしていたとこなどをすっきりさせた。それとparam()で第2匹数にnullを渡すと値をセットしないバグを解消。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P3_CacheにはRails風の「内容がまったく変わっていなかったら304 Not Modifiedを返す」という機能を追加した。&lt;br /&gt;MD5のハッシュを作るコストを取るか、ネットワーク負荷を取るかで微妙なとこだが、ネットワークのやり取りでもCPUに負荷はかかることだし、なによりこっちのほうが楽しそうだから。&lt;br /&gt;&lt;br /&gt;それからP3_DbでPDOにDSNを渡すところで、文字コードとしてUTF-8を指定するようにした。一点指名で。これはPixyのMySQLの場合にも同様にした。&lt;br /&gt;&lt;br /&gt;また、Sampleもちょこちょこ変えた。&lt;br /&gt;&lt;br /&gt;あ、それからP2_Service_Amazonを、Amazon Product Advertising APIの仕様変更（来月発効）に合わせて、AssociateTagを必須にした。&lt;br /&gt;&lt;br /&gt;他にもちょこちょこ変えた気がするけど、何変えたっけ？&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6466262560100490408-3560767186859381560?l=phpow.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/3560767186859381560/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://phpow.blogspot.com/2011/09/p3-controller-cache.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/3560767186859381560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/3560767186859381560'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/2011/09/p3-controller-cache.html' title='P3の Controller、 Cache等を更新'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6466262560100490408.post-6041976225518721003</id><published>2011-09-16T03:50:00.003+09:00</published><updated>2011-09-16T03:51:02.100+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controller'/><category scheme='http://www.blogger.com/atom/ns#' term='P3'/><title type='text'>P3_Controllerの文字コード周りのロジックを変更</title><content type='html'>内部的な変更なので、通常は影響はない。&lt;br /&gt;無駄な文字コード変換をなくしたりとか。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6466262560100490408-6041976225518721003?l=phpow.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/6041976225518721003/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://phpow.blogspot.com/2011/09/p3controller.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/6041976225518721003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/6041976225518721003'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/2011/09/p3controller.html' title='P3_Controllerの文字コード周りのロジックを変更'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6466262560100490408.post-7913991317702741799</id><published>2011-08-30T23:00:00.000+09:00</published><updated>2011-08-30T23:00:04.601+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Filter'/><category scheme='http://www.blogger.com/atom/ns#' term='Controller'/><category scheme='http://www.blogger.com/atom/ns#' term='Db'/><category scheme='http://www.blogger.com/atom/ns#' term='P3'/><title type='text'>P3の Dbと Controllerを Update</title><content type='html'>P3の変更を2点。 &lt;br /&gt;&lt;br /&gt;1つは、いつか付けようと思ってたけど、とりあえず自分が使わないから付けてなかったDBの更新日時用列名指定機能をやっと付けた。決め手になったのは、更新日時用に愛用しているMySQLのtimestamp型が2037年までしか使えないと知ったこと。駄目じゃん... &lt;br /&gt;P2はいいや。&lt;br /&gt;&lt;br /&gt;もう1つはController内でのpreg_match()での行末判定の改善。$でなく\zを使うようにした。まあ影響はほぼ無いが、今後のことも考えてより良い方法で。&lt;br /&gt;Filterの方が影響ありそうかと思ったが、Filter内でpreg_match()で$を使ってる箇所は、事前にデータをtrim()してる箇所のみだったので、影響が無かった。&lt;br /&gt;まあ、書き方としては$の方がシンプルで、かつ他の言語とも同じでスマートに見えるんだけど。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6466262560100490408-7913991317702741799?l=phpow.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/7913991317702741799/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://phpow.blogspot.com/2011/08/p3-db-controller-update.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/7913991317702741799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/7913991317702741799'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/2011/08/p3-db-controller-update.html' title='P3の Dbと Controllerを Update'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6466262560100490408.post-3317006896055039650</id><published>2011-07-27T22:21:00.000+09:00</published><updated>2011-07-27T22:21:21.125+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controller'/><category scheme='http://www.blogger.com/atom/ns#' term='P3'/><title type='text'>P3_Controllerのエラーハンドリング周りを少し改善</title><content type='html'>久々の投稿。&lt;br /&gt;&lt;br /&gt;P3_Controllerのエラー時のメッセージ表示を少し改善。エラーページを用意しない場合でも、デフォルトでHTTPステータスのエラーメッセージ（404 Not Foundとか）を表示するようにした。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6466262560100490408-3317006896055039650?l=phpow.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/3317006896055039650/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://phpow.blogspot.com/2011/07/p3controller.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/3317006896055039650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/3317006896055039650'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/2011/07/p3controller.html' title='P3_Controllerのエラーハンドリング周りを少し改善'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6466262560100490408.post-429764099832899695</id><published>2011-05-06T23:11:00.000+09:00</published><updated>2011-05-06T23:11:36.598+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='P2'/><category scheme='http://www.blogger.com/atom/ns#' term='Twitter'/><title type='text'>P2_Sevice_TwitterをOAuth 1.0aに対応させた</title><content type='html'>先日OAuth 1.0に対応させたのに続き、1.0aに対応させた。1.0と1.0aの違いは意外と少なかった。&lt;br /&gt;Twitterはいつになったら2.0に対応するのかな...。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6466262560100490408-429764099832899695?l=phpow.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpow.blogspot.com/feeds/429764099832899695/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://phpow.blogspot.com/2011/05/p2sevicetwitteroauth-10a.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/429764099832899695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6466262560100490408/posts/default/429764099832899695'/><link rel='alternate' type='text/html' href='http://phpow.blogspot.com/2011/05/p2sevicetwitteroauth-10a.html' title='P2_Sevice_TwitterをOAuth 1.0aに対応させた'/><author><name>admin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
