<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ethna_ActionBlog</title>
	<atom:link href="http://ethna.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ethna.wordpress.com</link>
	<description>Ethna 使ってみてる Blog</description>
	<lastBuildDate>Thu, 22 Jun 2006 03:40:59 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ethna.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ethna_ActionBlog</title>
		<link>http://ethna.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ethna.wordpress.com/osd.xml" title="Ethna_ActionBlog" />
	<atom:link rel='hub' href='http://ethna.wordpress.com/?pushpress=hub'/>
		<item>
		<title>vsftpd でドットファイルを見えるようにする</title>
		<link>http://ethna.wordpress.com/2006/06/22/vsftpd-%e3%81%a7-dot-%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%a6%8b%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/</link>
		<comments>http://ethna.wordpress.com/2006/06/22/vsftpd-%e3%81%a7-dot-%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%a6%8b%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Thu, 22 Jun 2006 02:44:03 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">https://ethna.wordpress.com/2006/06/22/vsftpd-%e3%81%a7-dot-%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%a6%8b%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/</guid>
		<description><![CDATA[Fedora のデフォルト ftpd（なんだろうか？）の vsftpd は初期状態では .htaccess などの、いわゆるドットファイルが FTP クライアントから見えない設定になっている。 これを見えるようにする為に、 /etc/vsftpd/vsftpd.conf 内に force_dot_files=YES と追加（そんな項目なかったので追加した。）して vsftpd を再起動すればオッケー！<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=17&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Fedora のデフォルト ftpd（なんだろうか？）の vsftpd は初期状態では .htaccess などの、いわゆるドットファイルが FTP クライアントから見えない設定になっている。<br />
これを見えるようにする為に、</p>
<p>/etc/vsftpd/vsftpd.conf</p>
<p>内に</p>
<blockquote><p>force_dot_files=YES</p></blockquote>
<p>と追加（そんな項目なかったので追加した。）して vsftpd を再起動すればオッケー！</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=17&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/06/22/vsftpd-%e3%81%a7-dot-%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%a6%8b%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP のちょっとしたセキュリティ確保</title>
		<link>http://ethna.wordpress.com/2006/06/22/php-%e3%81%ae%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%81%97%e3%81%9f%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e7%a2%ba%e4%bf%9d/</link>
		<comments>http://ethna.wordpress.com/2006/06/22/php-%e3%81%ae%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%81%97%e3%81%9f%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e7%a2%ba%e4%bf%9d/#comments</comments>
		<pubDate>Thu, 22 Jun 2006 02:39:31 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">https://ethna.wordpress.com/2006/06/22/php-%e3%81%ae%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%81%97%e3%81%9f%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e7%a2%ba%e4%bf%9d/</guid>
		<description><![CDATA[php.ini 内にある、 expose_php = Off と、Off にすると Apache のレスポンスヘッダで PHP の表記（Server: Apache/1.3.36 (Unix) PHP/5.1.4 の PHP/5.1.4 の部分）が表示されなくなる。 更に拡張子を .php から .html とかにすると PHP で動いてるようにみえなくなってセキュリティ上少し良いかも。 個人的にはさほど重要ではないと思っているけど（でも、Off にしてる）、そうしたい場合もあるのではなかろうか。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=16&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>php.ini</p>
<p>内にある、</p>
<blockquote><p>expose_php = Off</p></blockquote>
<p>と、Off にすると Apache のレスポンスヘッダで PHP の表記（Server: Apache/1.3.36 (Unix) PHP/5.1.4 の <strong>PHP/5.1.4</strong> の部分）が表示されなくなる。<br />
更に拡張子を .php から .html とかにすると PHP で動いてるようにみえなくなってセキュリティ上少し良いかも。</p>
<p>個人的にはさほど重要ではないと思っているけど（でも、Off にしてる）、そうしたい場合もあるのではなかろうか。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=16&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/06/22/php-%e3%81%ae%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%81%97%e3%81%9f%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e7%a2%ba%e4%bf%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows で CVS</title>
		<link>http://ethna.wordpress.com/2006/01/24/windows-%e3%81%a7-cvs/</link>
		<comments>http://ethna.wordpress.com/2006/01/24/windows-%e3%81%a7-cvs/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 02:19:14 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/24/windows-%e3%81%a7-cvs/</guid>
		<description><![CDATA[WIndows で CVS を使おうとすると eclips をインストールして使っている方が多いようですが、TortoiseCVS なら好きなエディタで編集して右クリックでコミットできてスゲー便利（情報提供オオヒダさん）。 グッバイ、重い統合開発環境！ Subversion 用の TortoiseSVN もあります。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=15&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WIndows で CVS を使おうとすると eclips をインストールして使っている方が多いようですが、<a href="http://www.tortoisecvs.org/" target="_blank">TortoiseCVS</a> なら好きなエディタで編集して右クリックでコミットできてスゲー便利（情報提供オオヒダさん）。<br />
グッバイ、重い統合開発環境！</p>
<p>Subversion 用の <a href="http://tortoisesvn.tigris.org/" target="_blank">TortoiseSVN</a> もあります。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=15&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/24/windows-%e3%81%a7-cvs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>ffmpeg-php</title>
		<link>http://ethna.wordpress.com/2006/01/19/ffmpeg-php/</link>
		<comments>http://ethna.wordpress.com/2006/01/19/ffmpeg-php/#comments</comments>
		<pubDate>Thu, 19 Jan 2006 07:26:52 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/19/ffmpeg-php/</guid>
		<description><![CDATA[ffmpeg-php は ffmpeg を PHP から操作できる PHP のエクステンションで、system() 関数とかで ffmpeg コマンドを叩かなくてもよいので便利（ただしエンコードは出来ないっぽい）。 ffmpeg-php を使うには、ffmpeg のビルド時に以下の configure オプションを指定する。 $ ./configure &#8211;enable-shared これをしないと ffmpeg-php の configure 時に怒られてしまう。 ffmpeg-php のビルドはいたって簡単。 $ phpize $ ./configure $ make # make install するだけ。 php.ini に extension 追加するのも忘れずに。 ただ、個人的には ffmpeg に amr コーデックを追加してビルドしていて、これが使えなくなった。 というのは、amr のオプションと shared のオプションを同時に付けて configure すると make でコケる。 ffmpeg-php の使い方もいたって簡単。 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=14&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ffmpeg-php.sourceforge.net/" target="_blank">ffmpeg-php</a> は <a href="http://ffmpeg.sourceforge.net/index.php" target="_blank">ffmpeg</a> を PHP から操作できる PHP のエクステンションで、system() 関数とかで ffmpeg コマンドを叩かなくてもよいので便利（ただしエンコードは出来ないっぽい）。<br />
ffmpeg-php を使うには、ffmpeg のビルド時に以下の configure オプションを指定する。</p>
<blockquote><p>$ ./configure &#8211;enable-shared</p></blockquote>
<p>これをしないと ffmpeg-php の configure 時に怒られてしまう。<br />
ffmpeg-php のビルドはいたって簡単。</p>
<blockquote><p>$ phpize<br />
$ ./configure<br />
$ make<br />
# make install</p></blockquote>
<p>するだけ。<br />
php.ini に extension 追加するのも忘れずに。</p>
<p>ただ、個人的には ffmpeg に amr コーデックを追加してビルドしていて、これが使えなくなった。<br />
というのは、amr のオプションと shared のオプションを同時に付けて configure すると make でコケる。</p>
<p>ffmpeg-php の使い方もいたって簡単。<br />
以下のソースでムービーファイルの動画コーデックが取得できる。</p>
<blockquote><p>$movie = new ffmpeg_movie(&#8216;movie.avi&#8217;);<br />
$movie-&gt;getVideoCodec();</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=14&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/19/ffmpeg-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>iptables、FTP で PASV 接続</title>
		<link>http://ethna.wordpress.com/2006/01/19/iptables%e3%80%81ftp-%e3%81%a7-pasv-%e6%8e%a5%e7%b6%9a/</link>
		<comments>http://ethna.wordpress.com/2006/01/19/iptables%e3%80%81ftp-%e3%81%a7-pasv-%e6%8e%a5%e7%b6%9a/#comments</comments>
		<pubDate>Thu, 19 Jan 2006 06:58:36 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/19/iptables%e3%80%81ftp-%e3%81%a7-pasv-%e6%8e%a5%e7%b6%9a/</guid>
		<description><![CDATA[iptables で FTP（Port 21）を許可しても PASV モードで接続ができない。 lsmod で Kernel の module を確認して、ip_nat_ftp・ip_conntrack_ftp がない場合は # modprobe ip_nat_ftp とすることで接続できるようになる。 /etc/sysconfig/iptables に -A INPUT -m state &#8211;state RELATED,ESTABLISHED -j ACCEPT 上記行を加えるのも忘れずに。 &#8211; /etc/sysconfig/iptables-config に IPTABLES_MODULES=&#8221;ip_nat_ftp&#8221; を追加したら、毎回 modprobe コマンドを叩く必要はなくなる。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=13&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>iptables で FTP（Port 21）を許可しても PASV モードで接続ができない。<br />
lsmod で Kernel の module を確認して、ip_nat_ftp・ip_conntrack_ftp がない場合は</p>
<blockquote><p># modprobe ip_nat_ftp</p></blockquote>
<p>とすることで接続できるようになる。<br />
/etc/sysconfig/iptables に</p>
<blockquote><p>-A INPUT -m state &#8211;state RELATED,ESTABLISHED -j ACCEPT</p></blockquote>
<p>上記行を加えるのも忘れずに。</p>
<p>&#8211;</p>
<p>/etc/sysconfig/iptables-config に</p>
<blockquote><p>IPTABLES_MODULES=&#8221;ip_nat_ftp&#8221;</p></blockquote>
<p>を追加したら、毎回 modprobe コマンドを叩く必要はなくなる。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=13&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/19/iptables%e3%80%81ftp-%e3%81%a7-pasv-%e6%8e%a5%e7%b6%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>未定義アクションの処理</title>
		<link>http://ethna.wordpress.com/2006/01/16/%e6%9c%aa%e5%ae%9a%e7%be%a9%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%87%a6%e7%90%86/</link>
		<comments>http://ethna.wordpress.com/2006/01/16/%e6%9c%aa%e5%ae%9a%e7%be%a9%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%87%a6%e7%90%86/#comments</comments>
		<pubDate>Mon, 16 Jan 2006 08:46:24 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Ethna]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/16/%e6%9c%aa%e5%ae%9a%e7%be%a9%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%87%a6%e7%90%86/</guid>
		<description><![CDATA[本家サイトにある「未定義のアクションが指定された場合に特定のアクションを実行する」で、定義されていないアクションのリクエストがあった場合にエラーページを返すようにする。 これ、本家の説明が少しわかりにくい（ように思う）んですけど、要するに /path/to/project/www/index.php 内を修正します。 Project_Controller::main(&#8216;Project_Controller&#8217;, &#8216;index&#8217;, &#8216;undef&#8217;); 上記のように、第３引数に定義されていないアクションのリクエストがあった場合に実行するアクションを定義する。 そして、/path/to/project/app/action/Undef.php を作成。 これで定義されていないアクションをリクエストすると undef が実行されるものの、何故か WARNING が出力されてしまう。 WARNING 出ちゃうとみっともないんだけど。何か違うのかなぁ。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=12&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>本家サイトにある「<a href="http://www.ethna.jp/ethna-tutorial-app-fallbackentrypoint.html" target="_blank">未定義のアクションが指定された場合に特定のアクションを実行する</a>」で、定義されていないアクションのリクエストがあった場合にエラーページを返すようにする。<br />
これ、本家の説明が少しわかりにくい（ように思う）んですけど、要するに /path/to/project/www/index.php 内を修正します。</p>
<blockquote><p>Project_Controller::main(&#8216;Project_Controller&#8217;, &#8216;index&#8217;, &#8216;undef&#8217;);</p></blockquote>
<p>上記のように、第３引数に定義されていないアクションのリクエストがあった場合に実行するアクションを定義する。<br />
そして、/path/to/project/app/action/Undef.php を作成。<br />
これで定義されていないアクションをリクエストすると undef が実行されるものの、何故か WARNING が出力されてしまう。<br />
WARNING 出ちゃうとみっともないんだけど。何か違うのかなぁ。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=12&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/16/%e6%9c%aa%e5%ae%9a%e7%be%a9%e3%82%a2%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%87%a6%e7%90%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>フォームの自動検証（複合チェック）</title>
		<link>http://ethna.wordpress.com/2006/01/14/%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%ae%e8%87%aa%e5%8b%95%e6%a4%9c%e8%a8%bc%ef%bc%88%e8%a4%87%e5%90%88%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%ef%bc%89/</link>
		<comments>http://ethna.wordpress.com/2006/01/14/%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%ae%e8%87%aa%e5%8b%95%e6%a4%9c%e8%a8%bc%ef%bc%88%e8%a4%87%e5%90%88%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%ef%bc%89/#comments</comments>
		<pubDate>Sat, 14 Jan 2006 08:24:37 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Ethna]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/14/%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%ae%e8%87%aa%e5%8b%95%e6%a4%9c%e8%a8%bc%ef%bc%88%e8%a4%87%e5%90%88%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%ef%bc%89/</guid>
		<description><![CDATA[Ehana の Validator には複合チェックというのが存在するらしいが、今はまだドキュメントが未整備状態。 パスワードを入力してもらった際に確認用のパスワードと入力値が同じかの検証をしようと思ったけど、ドキュメントがない為に自分で適当に考える（今はソース読む気力なし）。 PEAR::HTML_QuickForm でいうところの HTML_QuickForm::addRule() の compare である。 カスタムチェックでごにょごにょと以下のような感じで動いた。 class Sample_Form_Regist extends Ethna_ActionForm { var $form = array( &#8216;cmpPasswd&#8217; =&#62; array( &#8216;name&#8217; =&#62; &#8216;パスワード&#8217;, &#8216;required&#8217; =&#62; true, &#8216;type&#8217; =&#62; VAR_TYPE_STRING, ), &#8216;cmpRepeat&#8217; =&#62; array( &#8216;name&#8217; =&#62; &#8216;パスワード確認&#8217;, &#8216;required&#8217; =&#62; true, &#8216;type&#8217; =&#62; VAR_TYPE_STRING, &#8216;custom&#8217; =&#62; &#8216;compare&#8217;, ), ); function compare($name) { if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=11&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ehana の Validator には複合チェックというのが存在するらしいが、今はまだドキュメントが未整備状態。<br />
パスワードを入力してもらった際に確認用のパスワードと入力値が同じかの検証をしようと思ったけど、ドキュメントがない為に自分で適当に考える（今はソース読む気力なし）。<br />
PEAR::HTML_QuickForm でいうところの HTML_QuickForm::addRule() の compare である。<br />
カスタムチェックでごにょごにょと以下のような感じで動いた。</p>
<blockquote><p>class Sample_Form_Regist extends Ethna_ActionForm<br />
{</p>
<p>var $form = array(<br />
&#8216;cmpPasswd&#8217; =&gt; array(<br />
&#8216;name&#8217; =&gt; &#8216;パスワード&#8217;,<br />
&#8216;required&#8217; =&gt; true,<br />
&#8216;type&#8217; =&gt; VAR_TYPE_STRING,<br />
),<br />
&#8216;cmpRepeat&#8217; =&gt; array(<br />
&#8216;name&#8217; =&gt; &#8216;パスワード確認&#8217;,<br />
&#8216;required&#8217; =&gt; true,<br />
&#8216;type&#8217; =&gt; VAR_TYPE_STRING,<br />
&#8216;custom&#8217; =&gt; &#8216;compare&#8217;,<br />
),<br />
);</p>
<p>function compare($name)<br />
{<br />
if ($this-&gt;form_vars['cmpPasswd'] != $this-&gt;form_vars[$name]) {<br />
$this-&gt;ae-&gt;add($name, &#8216;The passwords do not match&#8217;, E_FORM_INVALIDVALUE);<br />
}<br />
}</p>
<p>}</p></blockquote>
<p>$this-&gt;form_vars[] に取得したいフォーム項目名を決めうちで入れてるだけなんだけど。<br />
条件があるフォーム項目でカスタムチェックしたら、いわゆる複合チェックはできますね。<br />
ほんとうはもっとスマートに出来るんだろうな。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=11&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/14/%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%ae%e8%87%aa%e5%8b%95%e6%a4%9c%e8%a8%bc%ef%bc%88%e8%a4%87%e5%90%88%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>PEAR::DB がメンドイ人の ezSQL</title>
		<link>http://ethna.wordpress.com/2006/01/13/peardb-%e3%81%8c%e3%83%a1%e3%83%b3%e3%83%89%e3%82%a4%e4%ba%ba%e3%81%ae-ezsql/</link>
		<comments>http://ethna.wordpress.com/2006/01/13/peardb-%e3%81%8c%e3%83%a1%e3%83%b3%e3%83%89%e3%82%a4%e4%ba%ba%e3%81%ae-ezsql/#comments</comments>
		<pubDate>Fri, 13 Jan 2006 08:12:27 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Ethna]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/13/peardb-%e3%81%8c%e3%83%a1%e3%83%b3%e3%83%89%e3%82%a4%e4%ba%ba%e3%81%ae-ezsql/</guid>
		<description><![CDATA[以前エントリした「DB オブジェクトに関して」のやり方で PEAR::DB オブジェクトを使ってロジックを書き進めるが、DB 周りのソースをコピペコピペするのが非常に面倒くさくなってきた（まだ２つしかアクション書いてないけど）。 そこで MT のダイナミック・パブリッシングで採用されている ezSQL を思い出した。 いろんな意味でイー・ジー！これ最強！！ プレースホルダなんていう小粋な技も持ってないぜ！ ezSQL をダウンロードしたら解凍して mysql/ez_sql.php を編集。クラスの中にデータソース直書きの潔さがまたイカス。 define(&#8220;EZSQL_DB_USER&#8221;, &#8220;&#8221;); define(&#8220;EZSQL_DB_PASSWORD&#8221;, &#8220;&#8221;); define(&#8220;EZSQL_DB_NAME&#8221;, &#8220;&#8221;); define(&#8220;EZSQL_DB_HOST&#8221;, &#8220;&#8221;); 編集を終えたら以下の感じでデータベースから値を取得。 include_once(&#8216;ez_sql.php&#8217;); $res =&#38; $db-&#62;get_results(&#8220;SELECT * FROM table&#8221;); foreach ($res as $row) { $row-&#62;id; $row-&#62;name; } 値がオブジェクトで返ってくるのでわかりやすい＆Smarty との相性もよい。 しかもクラス内でインスタンスの生成をしているので include するだけで使えてしまう気軽さ。 一つ注意としては Ethna のクラス名（PEAR::DB？）とぶつかって怒られてしまうので、自分で適当なクラス名で（ezSQL とか）コンストラクタ・インスタンス生成部分は書き換える必要があり。 ほんとうは Ethna の O/Rマッピング使った方がいいのだろうけど。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=10&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>以前エントリした「<a href="http://ethna.wordpress.com/2006/01/05/db-%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%81%ab%e9%96%a2%e3%81%97%e3%81%a6/">DB オブジェクトに関して</a>」のやり方で PEAR::DB オブジェクトを使ってロジックを書き進めるが、DB 周りのソースをコピペコピペするのが非常に面倒くさくなってきた（まだ２つしかアクション書いてないけど）。<br />
そこで MT のダイナミック・パブリッシングで採用されている <a href="http://justinvincent.com/home/articles.php?articleId=2" target="_blank">ezSQL</a> を思い出した。<br />
いろんな意味でイー・ジー！これ最強！！<br />
プレースホルダなんていう小粋な技も持ってないぜ！<br />
ezSQL をダウンロードしたら解凍して mysql/ez_sql.php を編集。クラスの中にデータソース直書きの潔さがまたイカス。</p>
<blockquote><p>define(&#8220;EZSQL_DB_USER&#8221;, &#8220;&#8221;);<br />
define(&#8220;EZSQL_DB_PASSWORD&#8221;, &#8220;&#8221;);<br />
define(&#8220;EZSQL_DB_NAME&#8221;, &#8220;&#8221;);<br />
define(&#8220;EZSQL_DB_HOST&#8221;, &#8220;&#8221;);</p></blockquote>
<p>編集を終えたら以下の感じでデータベースから値を取得。</p>
<blockquote><p>include_once(&#8216;ez_sql.php&#8217;);</p>
<p>$res =&amp; $db-&gt;get_results(&#8220;SELECT * FROM table&#8221;);<br />
foreach ($res as $row) {<br />
    $row-&gt;id;<br />
    $row-&gt;name;<br />
}</p></blockquote>
<p>値がオブジェクトで返ってくるのでわかりやすい＆Smarty との相性もよい。<br />
しかもクラス内でインスタンスの生成をしているので include するだけで使えてしまう気軽さ。</p>
<p>一つ注意としては Ethna のクラス名（PEAR::DB？）とぶつかって怒られてしまうので、自分で適当なクラス名で（ezSQL とか）コンストラクタ・インスタンス生成部分は書き換える必要があり。<br />
ほんとうは Ethna の O/Rマッピング使った方がいいのだろうけど。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=10&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/13/peardb-%e3%81%8c%e3%83%a1%e3%83%b3%e3%83%89%e3%82%a4%e4%ba%ba%e3%81%ae-ezsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>POST/GET 別の処理</title>
		<link>http://ethna.wordpress.com/2006/01/12/postget-%e5%87%a6%e7%90%86/</link>
		<comments>http://ethna.wordpress.com/2006/01/12/postget-%e5%87%a6%e7%90%86/#comments</comments>
		<pubDate>Thu, 12 Jan 2006 09:57:36 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Ethna]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/12/postget-%e5%87%a6%e7%90%86/</guid>
		<description><![CDATA[Ethna::prepare() で validate しての疑問。 今のままでは GET でも Validation されてしまいエラーメッセージが出る。 REQUEST_METHOD が POST/GET 別での処理はないのかと調べたところ、 Ethnaでは基本的にクライアントから送信されるフォーム値をGET/POST(REQUEST_METHOD)で区別しません。理由は、GET/POSTで振舞いを変えていると思わぬところでダサダサな振舞いをしたり、場合によっては(ここはGETしかこないと思い込んでコードを書いていたりすると)セキュリティホールになる可能性もなくもなくも無いためです と、本家サイトの下の方に書いてあった。 ポリシーなんで仕方ないなと思いつつ、自分で分岐処理を書く。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=9&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ethna::prepare() で validate しての疑問。<br />
今のままでは GET でも Validation されてしまいエラーメッセージが出る。<br />
REQUEST_METHOD が POST/GET 別での処理はないのかと調べたところ、</p>
<blockquote><p>Ethnaでは基本的にクライアントから送信されるフォーム値をGET/POST(REQUEST_METHOD)で区別しません。理由は、GET/POSTで振舞いを変えていると思わぬところでダサダサな振舞いをしたり、場合によっては(ここはGETしかこないと思い込んでコードを書いていたりすると)セキュリティホールになる可能性もなくもなくも無いためです</p></blockquote>
<p>と、本家サイトの下の方に書いてあった。<br />
ポリシーなんで仕方ないなと思いつつ、自分で分岐処理を書く。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=9&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/12/postget-%e5%87%a6%e7%90%86/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
		<item>
		<title>Ethna で PEAR::Auth</title>
		<link>http://ethna.wordpress.com/2006/01/11/ethna-%e3%81%a7-pearauth/</link>
		<comments>http://ethna.wordpress.com/2006/01/11/ethna-%e3%81%a7-pearauth/#comments</comments>
		<pubDate>Wed, 11 Jan 2006 05:27:27 +0000</pubDate>
		<dc:creator>taro</dc:creator>
				<category><![CDATA[Ethna]]></category>

		<guid isPermaLink="false">http://ethna.wordpress.com/2006/01/11/ethna-%e3%81%a7-pearauth/</guid>
		<description><![CDATA[Ethna の認証処理に関してメモ。 Ethna では Ethna_ActionClass::authenticate() っていうメソッドがあり、authenticate() → prepare() → perform() という順番で呼び出される。 認証処理は、Ethna_ActionClass を継承して authenticate() にロジックを書いたクラスを用意して、更にそれを継承してアクションを書くのが流儀らしい。 # つまり毎回 authenticate() 書く手間を省く。 ここの認証処理で PEAR::Auth を使おうともくろむ。 適当に Sample_Auth クラスとか作って、authenticate() メソッドをオーバライドするが、PEAR::Auth がどうも上手く動かない。 Firefox の LiveHTTPHeaders で挙動を確認すると、Ethna が Cookie を上書きしているっぽいことが判明。 そこで以下のように Ethna_Session::start() を先に呼び出すと動作する。 $this-&#62;session-&#62;start(); $a = new Auth(&#8216;DB&#8217;, $param, null, false); $a-&#62;start(); けど認証時の Validation とかログアウト処理を考えると結構メンドイ＆ Session 周りの処理が非効率になるので PEAR::Auth は使わない方向。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=8&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ethna の認証処理に関してメモ。<br />
Ethna では Ethna_ActionClass::authenticate() っていうメソッドがあり、authenticate() → prepare() → perform() という順番で呼び出される。<br />
認証処理は、Ethna_ActionClass を継承して authenticate() にロジックを書いたクラスを用意して、更にそれを継承してアクションを書くのが流儀らしい。<br />
# つまり毎回 authenticate() 書く手間を省く。</p>
<p>ここの認証処理で PEAR::Auth を使おうともくろむ。<br />
適当に Sample_Auth クラスとか作って、authenticate() メソッドをオーバライドするが、PEAR::Auth がどうも上手く動かない。<br />
Firefox の LiveHTTPHeaders で挙動を確認すると、Ethna が Cookie を上書きしているっぽいことが判明。<br />
そこで以下のように Ethna_Session::start() を先に呼び出すと動作する。</p>
<blockquote><p>$this-&gt;session-&gt;start();<br />
$a = new Auth(&#8216;DB&#8217;, $param, null, false);<br />
$a-&gt;start();</p></blockquote>
<p>けど認証時の Validation とかログアウト処理を考えると結構メンドイ＆ Session 周りの処理が非効率になるので PEAR::Auth は使わない方向。</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ethna.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ethna.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ethna.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ethna.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ethna.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ethna.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ethna.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ethna.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ethna.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ethna.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ethna.wordpress.com&amp;blog=58293&amp;post=8&amp;subd=ethna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ethna.wordpress.com/2006/01/11/ethna-%e3%81%a7-pearauth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7519fafb4a68b4359f3b6d4afb814ce?s=96&#38;d=identicon" medium="image">
			<media:title type="html">ethna</media:title>
		</media:content>
	</item>
	</channel>
</rss>
