<?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:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>はやとも　-hayatomo.com- &#187; technology</title>
	<atom:link href="http://hayatomo.com/category/technology/feed" rel="self" type="application/rss+xml" />
	<link>http://hayatomo.com</link>
	<description>画家 × Web Engineer</description>
	<lastBuildDate>Sat, 14 Aug 2010 16:30:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/category/technology/feed" />
		<item>
		<title>プログレッシブJPEGやCMYKモードのJPEGをUnix環境で判別（判定）</title>
		<link>http://hayatomo.com/2010/08/10/559</link>
		<comments>http://hayatomo.com/2010/08/10/559#comments</comments>
		<pubDate>Tue, 10 Aug 2010 13:26:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=559</guid>
		<description><![CDATA[プログレッシブJPEGやCMYKモードのJPEGをUnix環境で判別（判定）する際によく使われるのが、imagemagicのidentifyですが、プログレッシブJPEGの判別（判定）はオプション「-verbose」を使 ]]></description>
			<content:encoded><![CDATA[<p>プログレッシブJPEGやCMYKモードのJPEGをUnix環境で判別（判定）する際によく使われるのが、imagemagicのidentifyですが、プログレッシブJPEGの判別（判定）はオプション「-verbose」を使用しないと取得できなく、この「-verbose」が様々な情報を取ってくるものだから、非常に遅いです。</p>
<p>困り果てていたときに、職場の先輩が良いものを発見してくれました。ホント謝謝。<br />
発見したものは「rdjpgcom」です。</p>
<p>以下使用例です。</p>
<p><span id="more-559"></span></p>
<h3 style="margin-top:3em;">■【rdjpgcomとは】</h3>
<p>Linux系のコアのライブラリ。<br />
プログレッシブJPEG,CMYKモードのJPEGを判別できる。</p>
<h3 style="margin-top:3em;">■【rdjpgcomでプログレッシブJPEGを判別】</h3>
<p>[shell gutter="false" light="true"]<br />
$ rdjpgcom -verbose progressive.jpg<br />
JPEG image is 800w * 1000h, 4 color components, 8 bits per sample<br />
JPEG process: Progressive</p>
<p>$ rdjpgcom -verbose jpg.jpg<br />
JPEG image is 240w * 320h, 3 color components, 8 bits per sample<br />
JPEG process: Baseline<br />
[/shell]<br />
※JPEG process: ProgressiveならプログレッシブJPEG。</p>
<h3 style="margin-top:3em;">■【rdjpgcomでCMYKモードJPEGを判別】</h3>
<p>上記で 4 colorならCMYK, 3 color ならJPEG、1 color ならグレースケール</p>
<p style="margin-top:3em;">ちなみにrdjpgcomはJPEG以外の画像は使えません。下記のように返戻されます。</p>
<p>[shell gutter="false" light="true"]<br />
$ rdjpgcom png.png<br />
Not a JPEG file<br />
[/shell]</p>
<p style="margin-top:3em;">※参考URL</p>
<p><a href="http://linux.about.com/library/cmd/blcmdl1_rdjpgcom.htm">http://linux.about.com/library/cmd/blcmdl1_rdjpgcom.htm</a><br />
<a href="http://terralib.dpi.inpe.br/lib/html/devel/html/dd/d5c/a02985.html ">http://terralib.dpi.inpe.br/lib/html/devel/html/dd/d5c/a02985.html </a>←ソース</p>
<hr />
以下は余談です。</p>
<hr />
<h3 style="margin-top:3em;">■【imagemagicのidentifyでプログレッシブJPEGを判別（判定）】</h3>
<p>[shell gutter="false" light="true"]<br />
$ identify -verbose CMYK_progressive.jpg | grep -i interlace<br />
 Interlace: JPEG</p>
<p>$ identify -verbose jpg.jpg | grep -i interlace<br />
 Interlace: None<br />
[/shell]</p>
<p>※Interlace: JPEG ←プログレッシブJPEG<br />
 Interlace: None ←プログレッシブJPEGではない</p>
<h3 style="margin-top:3em;">■【imagemagicのidentifyでCMYK（color model）を判別（判定）】</h3>
<p>[shell gutter="false" light="true"]<br />
$ identify -format &#8216;%[colorspace]&#8216; CMYK_progressive.jpg<br />
CMYK</p>
<p>$ identify -format &#8216;%[colorspace]&#8216; gray-scale.jpg<br />
Gray</p>
<p>$ identify -format &#8216;%[colorspace]&#8216; jpg.jpg<br />
RGB<br />
[/shell]</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2010/08/10/559/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2010/08/10/559" />
	</item>
		<item>
		<title>Eclipse3.5でExplorerを起動したい！</title>
		<link>http://hayatomo.com/2009/09/03/139</link>
		<comments>http://hayatomo.com/2009/09/03/139#comments</comments>
		<pubDate>Thu, 03 Sep 2009 11:47:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=139</guid>
		<description><![CDATA[非常に便利な「Easy Explorer」plug-inですが、
最近では更新が止まっているらしく、どうやら最新のEclipse3.5では
このplug-inが使用できないようです。（今現在では・・・）


他によいpl ]]></description>
			<content:encoded><![CDATA[<p>非常に便利な「<!-- BODY { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } P { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } DIV { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } TD { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } --><span style="font-family: monospace;">Easy Explorer」plug-inですが、</span></p>
<p><span style="font-family: monospace;">最近では更新が止まっているらしく、どうやら最新のEclipse3.5では</span></p>
<p><span style="font-family: monospace;">このplug-inが使用できないようです。（今現在では・・・）</span></p>
<p><span style="font-family: monospace;"><span id="more-139"></span><br />
</span></p>
<p><span style="font-family: monospace;">他によいplug-inが無いかと探していると類似機能のものが</span></p>
<p><span style="font-family: monospace;">いくつかあるみたいです。↓</span></p>
<p><span style="font-family: monospace;">■Explorerを起動するplug-in<br />
</span></p>
<p><a href="http://d.hatena.ne.jp/cypher256/20081116/p1"><span style="font-family: monospace;">http://d.hatena.ne.jp/cypher256/20081116/p1</span></a></p>
<ul>
<li><span style="font-family: monospace;">Open External</span></li>
<li><span style="font-family: monospace;">Eclipse Platform Extensions</span></li>
<li><span style="font-family: monospace;">Easy Explorer</span></li>
</ul>
<div>
<p><span style="font-family: monospace;">これらを全て試してみたのですが、更新サイトURLが存在しなかったり、</span></p>
<p><span style="font-family: monospace;">Eclipse3.5だとうまくインストールできなかったりで断念しました・・・</span></p>
<p><span style="font-family: monospace;"> </span></p>
<p><span style="font-family: monospace;"><br />
</span></div>
<p><span style="font-family: monospace;">他に方法はないか探してみると、</span></p>
<p><span style="font-family: monospace;">どうやら、外部ツールにExplorerの起動を設定して実行するという方法もあるみたいです。↓</span></p>
<div>
<div>■Open the windows explorer(外部ツールとして設定する)</div>
<p><a href="http://www.eclipsezone.com/eclipse/forums/t77655.html"><span style="font-family: monospace;">http://www.eclipsezone.com/eclipse/forums/t77655.html</span></a></div>
<div><span style="font-family: monospace;">外部ツールの起動がちょい面倒だけど、とりあえず暫定使用ということで・・・</span></div>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/09/03/139/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/09/03/139" />
	</item>
		<item>
		<title>CakePHPでjsファイルをPHPで生成したい</title>
		<link>http://hayatomo.com/2009/08/31/132</link>
		<comments>http://hayatomo.com/2009/08/31/132#comments</comments>
		<pubDate>Mon, 31 Aug 2009 09:23:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=132</guid>
		<description><![CDATA[最近、業務でCakePHPをいじっているのですが、jsファイルをPHPで生成したかったので、その方法を下記します。

一般的には拡張子をphpのままでjavascriptの内容を吐き出すという方法（下記URL参照）があり ]]></description>
			<content:encoded><![CDATA[<p>最近、業務でCakePHPをいじっているのですが、jsファイルをPHPで生成したかったので、その方法を下記します。<br />
<span id="more-132"></span><br />
一般的には拡張子をphpのままでjavascriptの内容を吐き出すという方法（下記URL参照）があります。</p>
<p>http://hal-lab.cocolog-nifty.com/blog/2009/03/cssjsphp-bfe1.html</p>
<p>しかしながら、CakePHPのjavascriptヘルパーでそのファイルを指定しようとすると、拡張子がjsに自動変換されてしまいます。</p>
<p>≪テンプレート≫</p>
<p>[php light="true"]</p>
<p><?php echo $javascript->link(&#8216;hoge.php&#8217;, false);?></p>
<p>[/php]</p>
<p>↓<br />
[php light="true"]</p>
<p><script type="text/javascript" src="/js/hoge.php.js"></script></p>
<p>[/php]</p>
<p>どう解決しようか、javascriptヘルパーを継承したクラスでも作ってオーバーライドでもしようかと思いましたが、CakePHPのバージョンアップ等を考えると、スマートじゃないと・・・</p>
<p>そこで、下記のようにroutes.phpで、jsファイルパスでアクセスしたら、無理やりコントローラに渡す方法にしてみました。</p>
<p>≪routes.php≫<br />
[php light="true"]</p>
<p>Router::connect(&#8216;/js/hoge.js&#8217;, array(&#8216;controller&#8217; => &#8216;hogecons&#8217;, &#8216;action&#8217; => &#8216;hoge&#8217;));</p>
<p>[/php]</p>
<p>≪controller.php≫<br />
[php light="true"]</p>
<p>class HogeconsController extends AppController<br />
{<br />
    var function ui_config()<br />
    {<br />
        $this->set(&#8216;hoge&#8217;, $hoge);<br />
        $this->layout = &#8216;ajax&#8217;;<br />
    }<br />
}</p>
<p>[/php]</p>
<p>設計思想に反しているかもしれませんが、とりあえず動いたので良しとします。</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/08/31/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/08/31/132" />
	</item>
		<item>
		<title>wordpress2.8にアップグレードでエラー</title>
		<link>http://hayatomo.com/2009/06/19/128</link>
		<comments>http://hayatomo.com/2009/06/19/128#comments</comments>
		<pubDate>Thu, 18 Jun 2009 15:55:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=128</guid>
		<description><![CDATA[wordpress2.8にアップグレードしたら、正常に終了したのに、画面にアクセスすると、下記のエラーが発生しました。
Fatal error: Call to undefined method WordPress_Mo ]]></description>
			<content:encoded><![CDATA[<p>wordpress2.8にアップグレードしたら、正常に終了したのに、画面にアクセスすると、下記のエラーが発生しました。</p>
<p>Fatal error: Call to undefined method WordPress_Module::_weak_escape() in /hogehoge/hogehoge/public_html/wordpress/wp-includes/wp-db.php on line 487</p>
<p>調べてみたら、pluginで入れてある「redirection」がどうやら原因らしい。</p>
<p>「redirection」を無効にして、再度アップグレードしたら成功しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/06/19/128/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/06/19/128" />
	</item>
		<item>
		<title>coreserverにemacsをインストール</title>
		<link>http://hayatomo.com/2009/04/21/92</link>
		<comments>http://hayatomo.com/2009/04/21/92#comments</comments>
		<pubDate>Tue, 21 Apr 2009 06:30:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=92</guid>
		<description><![CDATA[coreserverにemacsをインストールしました。成功したのでメモ。
■emacsのインストール
&#62; mkdir local/emacs
&#62; cd local/src
&#62; wget http:// ]]></description>
			<content:encoded><![CDATA[<p>coreserverにemacsをインストールしました。成功したのでメモ。</p>
<p><strong>■emacsのインストール</strong></p>
<p>&gt; mkdir local/emacs</p>
<p>&gt; cd local/src</p>
<p>&gt; wget http://core.ring.gr.jp/pub/GNU/emacs/emacs-22.3.tar.gz</p>
<p>&gt; tar xvzf emacs-22.3.tar.gz</p>
<p>&gt; cd emacs-22.3/</p>
<p>&gt; ./configure &#8211;prefix=$HOME/local/emacs</p>
<p>&gt; make</p>
<p>&gt; make install</p>
<p><strong>■pathを設定しておく</strong></p>
<p>&gt; cd</p>
<p>&gt; vi .bashrc</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>#emacs<br />
PATH=$PATH:$HOME/local/emacs/bin<br />
export PATH</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/21/92/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/21/92" />
	</item>
		<item>
		<title>WordPressでKtai Styleを導入してみた</title>
		<link>http://hayatomo.com/2009/04/13/86</link>
		<comments>http://hayatomo.com/2009/04/13/86#comments</comments>
		<pubDate>Mon, 13 Apr 2009 10:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=86</guid>
		<description><![CDATA[WordPressの携帯端末用Plug-inは前までは、評判のよいものがなかなか見つかりませんでしたが、最近、Ktai Styleというものを発見しました。結構しっかりと作られているっぽいので、このサイトにも導入してみま ]]></description>
			<content:encoded><![CDATA[<p>WordPressの携帯端末用Plug-inは前までは、評判のよいものがなかなか見つかりませんでしたが、最近、Ktai Styleというものを発見しました。結構しっかりと作られているっぽいので、このサイトにも導入してみました。</p>
<p>↓ これ</p>
<p><a href="http://wppluginsj.sourceforge.jp/ktai_style/" target="_blank">http://wppluginsj.sourceforge.jp/ktai_style/</a></p>
<p>携帯用のテーマが既存でいくつか用意されているので、便利です。</p>
<p>このテーマをいろいろといじってみようと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/13/86/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/13/86" />
	</item>
		<item>
		<title>WrodPressで自動的にPタグとBRタグが挿入される</title>
		<link>http://hayatomo.com/2009/04/10/82</link>
		<comments>http://hayatomo.com/2009/04/10/82#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:41:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=82</guid>
		<description><![CDATA[備忘録的な意味合いで。。
http://radical-axis.jp/archives/blog/128
http://spring.sakurasaita.net/wordpress/25.html
]]></description>
			<content:encoded><![CDATA[<p>備忘録的な意味合いで。。</p>
<p><a href="http://radical-axis.jp/archives/blog/128" target="_blank">http://radical-axis.jp/archives/blog/128</a></p>
<p><a href="http://spring.sakurasaita.net/wordpress/25.html" target="_blank">http://spring.sakurasaita.net/wordpress/25.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/10/82/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/10/82" />
	</item>
		<item>
		<title>FTP接続できなくても自動アップグレードは可能（wordpress）</title>
		<link>http://hayatomo.com/2009/04/09/77</link>
		<comments>http://hayatomo.com/2009/04/09/77#comments</comments>
		<pubDate>Thu, 09 Apr 2009 12:09:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=77</guid>
		<description><![CDATA[自動アップグレード機能を使用すると、環境によって、「接続情報」画面が表示されます。
調べてみるとwordpressのインストールしたサーバのFTP接続情報（ホスト、ID、PW）を入力するらしいのですが、wordpress ]]></description>
			<content:encoded><![CDATA[<p>自動アップグレード機能を使用すると、環境によって、「接続情報」画面が表示されます。</p>
<p>調べてみるとwordpressのインストールしたサーバのFTP接続情報（ホスト、ID、PW）を入力するらしいのですが、wordpressソースのパーミッション等を変更することにより、FTP接続情報を入力しなくても、自動アップグレードは可能であることが分かりました。</p>
<p>※環境はレンタルサーバではなく、自前サーバなので、この例は特殊かもしれません。</p>
<p><span style="color: #ff0000;">≪環境情報≫</span></p>
<ul>
<li><span style="">wordpressソースはapacheグループ</span></li>
<li><span style="">ディレクトリのパーミッションは775</span></li>
<li><span style="">ファイルのパーミッションは664</span></li>
</ul>
<p><span style="color: #ff0000;">≪変更したこと≫</span></p>
<ul>
<li><span style="">下記コマンドを実行して、</span><span style="">自動アップグレード実行ファイルをapacheユーザにした</span>
<ul>
<li><span style=""># chown apache.apache wp-admin/update.php</span></li>
<li><span style=""># chown apache.apache wp-admin/update-core.php</span></li>
</ul>
</li>
</ul>
<p>※「update.php」はplug-inのアップグレード実行ファイルであり、plug-inが自動アップグレードできることを確認しましたが、「update-core.php」はwordpress自体のアップグレード実行ファイルであると予想し、自動アップグレードできることは確認しておりません。</p>
<p>（でも、もともとパーミッションが664なのに、何故、ファイルオーナーを変更しないといけなかったんだろう。。。謎です。。。）</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/09/77/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/09/77" />
	</item>
		<item>
		<title>メールアドレスにおける、.（ドット）の連続使用、「@」直前に.（ドット）の使用</title>
		<link>http://hayatomo.com/2009/04/08/68</link>
		<comments>http://hayatomo.com/2009/04/08/68#comments</comments>
		<pubDate>Wed, 08 Apr 2009 02:12:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=68</guid>
		<description><![CDATA[携帯系サイトを手がけていると、メールアドレスで表題の問題にぶち当たります。これは、「RFC」（5321、5322）の規定違反ですね。
関係するのはdocomoさんとauさんです。私の所持しているsoftbank(旧J-p ]]></description>
			<content:encoded><![CDATA[<p>携帯系サイトを手がけていると、メールアドレスで表題の問題にぶち当たります。これは、「RFC」（5321、5322）の規定違反ですね。</p>
<p>関係するのはdocomoさんとauさんです。私の所持しているsoftbank(旧J-phone)さんは規定に従っているみたいなので問題ないそうです。</p>
<p>■docomoさん（2009年4月8日現在）</p>
<p><a href="http://www.rbbtoday.com/news/20090403/59059.html">http://www.rbbtoday.com/news/20090403/59059.html</a></p>
<p>こちら、docomoさんのサイトで正式発表されていなかったみたいなので、実際にdocomoさんに電話して問い合わせてみました。やはり、.（ドット）の連続使用、「@」直前に.（ドット）の使用でメールアドレスは登録できないよう、ルール変更したそうです。（2009年4月1日より実施）</p>
<p>■auさん（2009年4月8日現在）</p>
<p><a href="http://www.au.kddi.com/service/email/support/meiwaku/email_boshi/mail_address.html">http://www.au.kddi.com/service/email/support/meiwaku/email_boshi/mail_address.html</a></p>
<p>下記の注意書きが記述。</p>
<p>「. (ピリオド/ドット)」をアドレス内で連続使用したり、「@」マーク直前に設定すると、一部のプロバイダーとメールを送受信できない場合があります。</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/08/68/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/08/68" />
	</item>
		<item>
		<title>mb_send_mail()にReturn-Pathを指定する</title>
		<link>http://hayatomo.com/2009/04/02/64</link>
		<comments>http://hayatomo.com/2009/04/02/64#comments</comments>
		<pubDate>Thu, 02 Apr 2009 03:30:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=64</guid>
		<description><![CDATA[PHPのmb_send_mail()にReturn-Pathを指定する方法ですが、manualを見てもいまいちよく分からないのでここにメモします。
環境は次の通り。
php.ini
&#8212;&#8212;&#821 ]]></description>
			<content:encoded><![CDATA[<p>PHPのmb_send_mail()にReturn-Pathを指定する方法ですが、manualを見てもいまいちよく分からないのでここにメモします。</p>
<p>環境は次の通り。</p>
<p>php.ini</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>sendmail_path = /usr/sbin/sendmail -t -i</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>一見sendmailを使用しているみたいですが、実はpostfixにエイリアスされています・・・。sendmailのインターフェイス互換らしいです。</p>
<p><a href="http://www.searchman.info/fedoracore4_apply/sev1040.html">これ</a>を使っているみたい。</p>
<p>ソースは以下。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>・・・</p>
<p>$parameter = &#8216;-f  &#8216; . &#8216;hogehoge@hoge.com&#8217;;</p>
<p>mb_send_mail($to, $subject, $body, $header, $parameter);</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>第五引数に渡す文字列に「-f」オプションを使うらしいです。（ここにはコマンドライン引数がいろいろ指定できるみたいですね。）</p>
<p>あとメールが正常に送信されているか否かは下記のメールログが参考になります。（今回の環境においては・・・）</p>
<p>/var/log/maillog</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/02/64/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/02/64" />
	</item>
	</channel>
</rss>
