<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>PHP日和り</title>
      <link>http://blog.creamu.com/phpbiyori/</link>
      <description>今日もいい天気。PHP日和り。</description>
      <language>ja</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Fri, 15 Jun 2007 12:40:25 +0900</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

      
      <item>
         <title>新規ウィンドウのポップアップを画面中央にする方法</title>
         <description><![CDATA[<p>新規ウィンドウのポップアップを画面中央にする方法をメモ。</p>

<p>&lt;a href=&quot;#&quot; onClick=&quot;window.open('http://www.goo.ne.jp/','_blank','width=300,height=300,left='+(window.screen.width-300)/2+',top='+(window.screen.height-300)/2);&quot;&gt;<br><br />
&lt;img src=&quot;http://***/img.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</p>

<p>画面幅からウィンドウ幅(300)を引いたものを２で割ってleftに指定すると横中央、みたいな感じです。</p>

<p>■参考記事</p>

<p>&raquo; <a href="http://kikitai.teacup.com/kotaeru.php3?q=1943020">新規ウィンドウの表示位置を画面中央に</a></p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/06/post_2.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/06/post_2.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">javascript</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">ポップアップ</category>
        
         <pubDate>Fri, 15 Jun 2007 12:40:25 +0900</pubDate>
      </item>
      
      <item>
         <title>smartyでfor文と同じループを実装</title>
         <description><![CDATA[<p>smartyでfor文と同じループを実装するときにいつも困るのでメモ。</p>

<p>$arrayは配列<br />
nameは任意（sectionの中で使う）</p>

<p>{section loop=$arrayname=value start=0 step=1 max=$count_array}<br />
    {$array[$smarty.section.value.index][value]}<br />
{/section}</p>

<p>■参考記事</p>

<p>&raquo; <a href="http://kayano.jugem.cc/?eid=228">Smartyでfor文みたいな動きをさせるには</a></p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/06/smartyfor.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/06/smartyfor.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">smarty</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">for</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">smarty</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">ループ</category>
        
         <pubDate>Thu, 07 Jun 2007 14:39:38 +0900</pubDate>
      </item>
      
      <item>
         <title>PEARのHTML_QUICKFORMインストールメモ</title>
         <description><![CDATA[<p>PEARのHTML_QUICKFORMインストールメモ。</p>

<p># pear list<br />
でインストール済みのものをチェック。</p>

<p>以下の順番でインストール。</p>

<p># pear install HTML_Common<br />
# pear install HTML_QuickForm</p>

<p>■参考記事</p>

<p>&raquo; <a href="http://shoulder.jp/archives/006611.php">PEAR::HTML_QuickForm の インストール</a></p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/06/pearhtml_quickform.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/06/pearhtml_quickform.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">HTML_QUICKFORM</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">HTML_QUICKFORM</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">PEAR</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">インストール</category>
        
         <pubDate>Thu, 07 Jun 2007 04:11:09 +0900</pubDate>
      </item>
      
      <item>
         <title>HTML_QUICKFORMでクライアント側のjavascriptによるポップアップチェックを行うには</title>
         <description><![CDATA[<p>HTML_QUICKFORMでクライアント側のjavascriptによるポップアップチェックを行うにはheadの中に{$form.javascript}と記述</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/06/html_quickformjavascript.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/06/html_quickformjavascript.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">HTML_QUICKFORM</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">HTML_QUICKFORM</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
        
         <pubDate>Tue, 05 Jun 2007 14:55:48 +0900</pubDate>
      </item>
      
      <item>
         <title>HTML_QUICKFORMでformにname、およびidを設定する</title>
         <description><![CDATA[<p>HTML_QUICKFORMについてメモ。</p>

<p>$form    = new HTML_QuickForm(test);</p>

<p>上記から↓のタグが出力されます。</p>

<form name="test" id="test"..>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/html_quickformformnameid.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/html_quickformformnameid.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">HTML_QUICKFORM</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">form</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">HTML_QUICKFORM</category>
        
         <pubDate>Wed, 30 May 2007 12:44:25 +0900</pubDate>
      </item>
      
      <item>
         <title>UTF-8での全角文字は3バイト</title>
         <description><![CDATA[<p>UTF-8での全角文字は3バイトで計算されるようです！</p>

<p>これにははまった！</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/post_1.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/post_1.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">入力チェック</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">UTF-8</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">バイト</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">全角</category>
        
         <pubDate>Tue, 29 May 2007 14:26:59 +0900</pubDate>
      </item>
      
      <item>
         <title>headers already sent byのエラーが起きたときの対処法</title>
         <description><![CDATA[<p>header("Location:の先に特定のrequire_onceがあると「headers already sent by」のエラーが出ることがあるため、特定のrequire_onceをheader("Location:の後におくと直ることがあります。・・・1時間くらいはまりました。</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/headers_already_sent_by.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/headers_already_sent_by.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">バグフィックス</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">エラー</category>
        
         <pubDate>Sat, 26 May 2007 16:35:37 +0900</pubDate>
      </item>
      
      <item>
         <title>HTML_QUICKFORMのエラー出力</title>
         <description><![CDATA[<p>javascriptエラー：{$form.javascript}</p>

<p>PHPエラー（urlは変数名）：<br />
{if $form.url.error}<br />
{$form.url.error}<br />
{/if}<br />
</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/html_quickform.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/html_quickform.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">HTML_QUICKFORM</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag"><![CDATA[HTML_QUICKFORM&lt;PEAR エラー]]></category>
        
         <pubDate>Tue, 22 May 2007 12:51:34 +0900</pubDate>
      </item>
      
      <item>
         <title>Linuxコマンドメモ</title>
         <description><![CDATA[<p>ｙｙｐで行コピー</p>

<p>tail -fでプロセス監視</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/linux.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/linux.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">Linux</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">Linux</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">コマンド</category>
        
         <pubDate>Mon, 21 May 2007 20:07:29 +0900</pubDate>
      </item>
      
      <item>
         <title>MySQLの日付型、timestampとdatetime</title>
         <description><![CDATA[<p>MySQLのdate型で困ったのでメモ。</p>

<p>datetimeもtimestampも、「YYYY-MM-DD HH:MM:SS」という形としては同じだけど、timestampはそのカラムを更新していなくても、別のカラムを更新するとtimestampカラムも更新されるので注意。</p>

<p>datetimeは更新されません。</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/mysqltimestampdatetime.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/mysqltimestampdatetime.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">MySQL</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">MySQL</category>
        
         <pubDate>Fri, 18 May 2007 11:35:14 +0900</pubDate>
      </item>
      
      <item>
         <title>日本時間とアメリカのPDT（Pacific Daylight Time）との時差</title>
         <description><![CDATA[<p>APIのダウンタイムがPDTで伝えられるのでメモ。</p>

<p>日本時間とアメリカのPDT（Pacific Daylight Time）との時差は「<strong>16時間</strong>」です！</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/05/pdtpacific_daylight_time.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/05/pdtpacific_daylight_time.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">API</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">PDT</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">日本時間</category>
        
         <pubDate>Wed, 16 May 2007 12:48:52 +0900</pubDate>
      </item>
      
      <item>
         <title>DNSキャッシュをクリアする方法</title>
         <description><![CDATA[<p>ちょっとしたきっかけでローカルのDNSキャッシュをクリアする機会があったのでメモエントリー。</p>

<p>コマンドプロンプトで以下のコマンドを実行。</p>

<p>■DNSキャッシュの確認<br />
　ipconfig/displaydns</p>

<p>■DNSキャッシュのクリア<br />
　ipconfig/flushdns</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/04/dns.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/04/dns.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">コマンドプロンプト</category>
        
        
         <pubDate>Wed, 18 Apr 2007 00:25:01 +0900</pubDate>
      </item>
      
      <item>
         <title>smarty内にコメントを書く方法</title>
         <description><![CDATA[<p>smarty内にコメントを書く方法は以下。</p>

<p>{*コメント*}</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/03/smarty_1.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/03/smarty_1.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">smarty</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">smarty</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">コメント</category>
        
         <pubDate>Mon, 26 Mar 2007 22:19:18 +0900</pubDate>
      </item>
      
      <item>
         <title>smartyでデバッグする方法</title>
         <description><![CDATA[<p>smartyのデバッグは以下をテンプレートファイルに記述。</p>

<p>{debug output="html"} </p>

<p>変数の中身をわかりやすく表示してくれていい感じです。</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/03/smarty.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/03/smarty.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">smarty</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag">smarty</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">デバッグ</category>
        
         <pubDate>Mon, 26 Mar 2007 22:15:39 +0900</pubDate>
      </item>
      
      <item>
         <title>HTML_QUICKFORMでclientのjavascriptチェックメッセージを変更する方法</title>
         <description><![CDATA[<p>Invalid information enterd.<br />
Please correct these fields.</p>

<p>上記のメッセージがclientのjavascriptチェックのポップアップで出てきてしまいます。</p>

<p>ユーザサービス的にはこれはかっこ悪い。</p>

<p>以下をHTML_QUICKFORMに追記すればメッセージは出なくなります。</p>

<p>$form->setJsWarnings("","");</p>

<p>ちなみに以下のように2種類テキストを設定することもできます。</p>

<p>$form->setJsWarnings("入力エラーです。","上記の項目を修正してください。");</p>

<p>出力ポップアップは↓</p>

<p>入力エラーです。<br />
例：名前が入力されていません。<br />
上記の項目を修正してください。</p>]]></description>
         <link>http://blog.creamu.com/phpbiyori/2007/03/html_quickformclientjavascript.html</link>
         <guid>http://blog.creamu.com/phpbiyori/2007/03/html_quickformclientjavascript.html</guid>
        
          <category domain="http://www.sixapart.com/ns/types#category">HTML_QUICKFORM</category>
        
        
          <category domain="http://www.sixapart.com/ns/types#tag"><![CDATA[HTML_QUICKFORM&lt;PEAR]]></category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">javascript</category>
        
          <category domain="http://www.sixapart.com/ns/types#tag">ポップアップ</category>
        
         <pubDate>Mon, 26 Mar 2007 10:40:20 +0900</pubDate>
      </item>
      
   </channel>
</rss>

