<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HOTSYSTEMS - BLOG - &#187; PHP</title>
	<atom:link href="http://www.hotsystems.jp/blog/archives/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hotsystems.jp/blog</link>
	<description>簡単で使いやすいシステム開発でみんなを笑顔に！</description>
	<lastBuildDate>Sat, 22 Oct 2011 16:26:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend_Navigation　と　RewriteRouter</title>
		<link>http://www.hotsystems.jp/blog/archives/307</link>
		<comments>http://www.hotsystems.jp/blog/archives/307#comments</comments>
		<pubDate>Sat, 22 Oct 2011 16:26:59 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/?p=307</guid>
		<description><![CDATA[Zend_Navigation_Page：：factory(array())；
を使ってメニューなんかを作っているのだけれども、　RewriteRouter を使ったページにアクセスするとメニューのURLがおかしなことになった。
色々ググったが解決策が見つからない。ソースを追った結果以下の方法で解決。
Zend_Navigation_Page：：factory(array(
　&#8217;label&#8217; => &#8216;ラベル名&#8217;,
　&#8217;route&#8217; => &#8216;default&#8217;,
　&#8217;module&#8217; => &#8216;モジュール名&#8217;,
　&#8217;controller&#8217; => &#8216;コントローラー名&#8217;,
　&#8217;action&#8217; => &#8216;アクション名&#8217;,
))；
ルーターを使わないページ設定では
&#8216;route&#8217; => &#8216;default&#8217;,
を明示的に記載！！
これが分かるまでに何時間と。。。。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/307/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WYSIWYG Editor　- リッチテキストエディタ -</title>
		<link>http://www.hotsystems.jp/blog/archives/267</link>
		<comments>http://www.hotsystems.jp/blog/archives/267#comments</comments>
		<pubDate>Tue, 19 Jan 2010 11:11:40 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[program]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/267</guid>
		<description><![CDATA[PHPが使える環境なら画像もアップできるしいい感じです。
Xinha（ジーナ）
画像管理プラグインのフォルダ設定がマニュアルどおりではなぜか
上手くいかないので、設定ファイルを直接いじってみた。
xinha/plugins/ImageManager/config.inc.php
59行目付近　$IMConfig['images_dir'] = &#8220;../../../images&#8221;;
82行目付近　$IMConfig['images_url'] = &#8220;/images&#8221;;
82行目付近　$IMConfig['allow_upload'] = true;
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/267/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yum Error: Missing Dependency</title>
		<link>http://www.hotsystems.jp/blog/archives/265</link>
		<comments>http://www.hotsystems.jp/blog/archives/265#comments</comments>
		<pubDate>Sat, 21 Nov 2009 02:49:17 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/265</guid>
		<description><![CDATA[VPSのPHPをアップデートしようとしたところ以下の様にエラーが出た。
[root@ user]# yum update php
Error: Missing Dependency: php-common = 5.1.6-23.9v1 is needed by package php-sqlite2-5.1.6-23.9v1.x86_64 (installed)
色々調べたが結局php-sqliteは目下必要ないので削除する事に
[root@ user]# yum remove php-sqlite2-5.1.6-23.9v1.x86_64
もう一度トライでインストールできた
[root@ user]# yum update php
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/265/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pear Pagerについて</title>
		<link>http://www.hotsystems.jp/blog/archives/193</link>
		<comments>http://www.hotsystems.jp/blog/archives/193#comments</comments>
		<pubDate>Mon, 04 Feb 2008 15:23:55 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[波乗り]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/193</guid>
		<description><![CDATA[最近ZendFrameworkで色々やってますが、これにはページング機能と云うものが付いていないらしい。仕方ないのでPearのPagerを使っております。今回このPagerでオプション「fileName」にURLエンコードした文字列を渡したかったのだけれども上手くいかなかった。リンク文字列が消えてしまうのです。マニュアルなどを見ても特に情報も見つからないです。
仕方ないのでソースを追って修正してみました。
Pager/Common.php 653行目あたり
_renderLinkの中に
$href = sprintf($this->_fileName, $this->_linkData[$this->_urlVar]);
と云うのがあってsprintfがエンコードした文字列を拾ってしまって上手く変換できないらしい。
しょうがないので無理やり以下のように修正
$href = str_replace(&#8216;%d&#8217;,$this->_linkData[$this->_urlVar],$this->_fileName);
※%dはページ番号に変換される
これで一件落着？
さて本日は雪を降らした低気圧のおかげで波乗りを楽しむ事ができました。（仕事の合間、少しだけでしたが）

powered by Starboard, Inc.
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/193/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO　検索エンジン順位</title>
		<link>http://www.hotsystems.jp/blog/archives/178</link>
		<comments>http://www.hotsystems.jp/blog/archives/178#comments</comments>
		<pubDate>Fri, 14 Dec 2007 17:33:18 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/178</guid>
		<description><![CDATA[とあるお仕事で検索エンジンでの順位を表示させようと云う話になりました。調べたいURLとキーワードを入れるとYahoo,Google,MSNにて現在何位に表示されているか調べるプログラムです。
ラボにアップしてあります。
http://www.hotsystems.jp/lab/seorank/
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/178/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework &#8211; mod_rewrite</title>
		<link>http://www.hotsystems.jp/blog/archives/166</link>
		<comments>http://www.hotsystems.jp/blog/archives/166#comments</comments>
		<pubDate>Mon, 05 Nov 2007 15:15:00 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/166</guid>
		<description><![CDATA[Zend Frameworkをローカル環境でテストする時の設定の覚書。mod_rewriteで少しハマった。。。
Zend　FrameworkはPHP5.1.4以上が必要なのでXAMPPのPHP SwitchでPHP5にする。ちなみに小生の環境はPHP5.2.0です。開発はEclipsでやるのでhttpd.confの設定でEclipsのワークスペースに合わせる。それからmod_rewriteを有効に。
LoadModule rewrite_module modules/mod_rewrite.so
Alias /zend &#8220;C:/D/Eclipse/zend/public_html/&#8221;
&#60;directory &#8220;C:/D/Eclipse/zend/public_html/&#8221;&#62;
 Options All
 AllowOverride all
 Order allow,deny
 Allow from all
&#60;/Directory&#62;
ここでOptions Allにしないと.htaccessでmod_rewriteの設定した時に、アクセス拒否されてしまったので注意。
次に.htaccessの設定
RewriteEngine On
RewriteRule !\.(js&#124;ico&#124;gif&#124;jpg&#124;png&#124;css&#124;zip&#124;gz&#124;html&#124;xml)$ index.php
RewriteBase /zend
DirectoryIndex index.php
RewriteBaseはhttpd.confで設定したドキュメントルートのエイリアス「zend」を設定
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/166/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend　Framework　-PHPフレームワークの本命？-</title>
		<link>http://www.hotsystems.jp/blog/archives/165</link>
		<comments>http://www.hotsystems.jp/blog/archives/165#comments</comments>
		<pubDate>Sun, 04 Nov 2007 15:34:03 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/165</guid>
		<description><![CDATA[最近、情報誌などでPHP4のサーポートが年内に終了・2008年8月にはセキュリティーサポートも終了と云う記事が出ているのを良く見かける。つまりは「みんなPHP5に移行しましょう」という話になっております。さてさてこうなってくるとPHP4で色々作ってきている小生にとっては（多くのWebアプリがそうであるように）無視できない状況になるわけですね。まーすぐに使えなくなるわけではないけど。
でまーPHP5で今後のアプリを作っていくにあたりそろそろフレームワークをと。今まではMojaviライクな自前フレームワークを使っていたのだけど今後の事を考えて世に出回っているものを使ってみようかと思い立ったのでした。そこで問題になってくるのがどのフレームワークを使うか？ってことになるわけです。PHPのフレームワーク色々ありますですよ。CakePHP,symfony,ethna・・・と。それぞれに書籍も出てたりして。まー使う側から言ったらいったいどれ選んだらいいねん！！と言いたくなるこの状況です。案件に合ったものを選びましょう！！って言ったって・・・
でちょっと調べてみるとZend Frameworkが今年の7月に正式リリースを迎えたらしいのです。以前見た時はベータ版だったのであまり使う気になれなかったのだけど正式リリースと云うことで、じゃまあとりあえずどんなもんか見てみましょうよと。ちょうどゼンド・ジャパン監修の参考書も出ている事だし、巷では「本命」と言われているみたいだし。
と、言う事で暫く仕事の合間をぬってZend Frameworkを研究してみよう！！
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/165/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2003でIIS6 &amp; PHP</title>
		<link>http://www.hotsystems.jp/blog/archives/134</link>
		<comments>http://www.hotsystems.jp/blog/archives/134#comments</comments>
		<pubDate>Mon, 10 Sep 2007 14:29:08 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[サーバ]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/134</guid>
		<description><![CDATA[とあるクライアント様の案件でIIS6とPHP５で運用する為にWindows 2003 Server にPHPをインストールした。拡張モジュールを使用できるISAPI版のPHP5をインストールし通常どうりの設定をした。
１．php5ts.dllをC:\WINDOWSへ
２．php.ini-distをphp.iniとし、C:\WINDOWSへ
３．php.iniのinclude_pathやextension_dirを設定
４．IISマネージャーのISAPIフィルタを追加
５．「ホームディレクトリ」の「構成」からアプリケーションのマッピングを設定
とココまでで問題なく動くと思いきや何故か動かない。調べてみるとIIS6では
IIS 6 (2003 Server) の場合は IIS マネージャを開き、「Web サービス拡張」に 移動し、「新しい Web サービス拡張を追加」を選択し、たとえば「PHP」などと 拡張名を入力し、「追加」ボタンを押して ISAPI ファイル (php4isapi.dll または php5isapi.dll) あるいは CGI (php.exe または php-cgi.exe) を選択し、「拡張の状態を許可済みに設定する」をチェックして「OK」ボタンを クリックします。　?　PHPマニュアルより　?
らしい。


これで無事IIS6でPHP5を動かすことができた。さーてこれでアプリを作っていけるぞ！
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/134/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>日付処理</title>
		<link>http://www.hotsystems.jp/blog/archives/120</link>
		<comments>http://www.hotsystems.jp/blog/archives/120#comments</comments>
		<pubDate>Mon, 27 Aug 2007 14:33:51 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[program]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/120</guid>
		<description><![CDATA[日付処理の覚書
PHPの日付計算
$date = date(&#8216;Y-m-d&#8217;,strtotime(&#8220;-1 day&#8221;));  // 一日前
$date = date(&#8216;Y-m-d&#8217;,strtotime(&#8220;-1 month&#8221;)); // 一ヶ月前
$date = date(&#8216;Y-m-d&#8217;,strtotime(&#8220;-1 year&#8221;)); // 一年前
PostgreSQLの日付
hogeテーブルのdateカラムに以下のような値が入っている場合
2007-08-27 22:12:10.109
select to_date(to_char(date, &#8216;Mon YYYY&#8217;),&#8217;Mon YYYY&#8217;) from hoge;
→2007-08-01
select to_date(to_char(date, &#8216;YYYY&#8217;),&#8217;YYYY&#8217;) from hoge;
→2007-01-01
よく使うのに忘れるので・・・・
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/120/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP　RSSを取得</title>
		<link>http://www.hotsystems.jp/blog/archives/108</link>
		<comments>http://www.hotsystems.jp/blog/archives/108#comments</comments>
		<pubDate>Tue, 14 Aug 2007 12:16:28 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/108</guid>
		<description><![CDATA[小生はフリープログラマとして奮闘しているわけだけど、今まで自分のサイトを作っていなかった。ドメイン取ったり、デザイナーの友人にロゴを作ってもらったりはしたけど中々サイトは作っていなかった。そもそもデザインがかなり苦手なのである。しかしやっとこさ何となく形を作ってみた。で、トップページにこのブログの更新状況を表示しようと思った。ブログはRSSを配信しているわけだからそれを取得して表示してあげれば簡単だ。
ただ、RSSを取ってきてパースするプログラムを作るのが面倒だったので探してみたら、便利なライブラリがあった。
MagpieRSS: RSS for PHP
ライブラリを読み込んでRSSへのパスを入れてあげればパースされたObjectでかえってくる。
 require_once(&#8220;./magpie/rss_fetch.inc&#8221;);
 define(&#8220;MAGPIE_CACHE_AGE&#8221;,60*5);
 define(&#8220;MAGPIE_CACHE_DIR&#8221;,&#8221;cache/&#8221;);
 define(&#8220;MAGPIE_OUTPUT_ENCODING&#8221;,&#8221;UTF-8&#8243;);
 $obj = fetch_rss(&#8220;http://www.hotsystems.jp/blog/feed&#8221;);
 foreach($obj->items as $key=>$val)
 {
　　print $val['title'];
 }
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/108/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

