<?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>みぞおち &#187; PHP</title>
	<atom:link href="http://mizoochi.com/categories/php/feed" rel="self" type="application/rss+xml" />
	<link>http://mizoochi.com</link>
	<description>日々の足跡をコツコツと</description>
	<lastBuildDate>Mon, 08 Feb 2010 17:26:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/categories/php/feed" />
		<item>
		<title>windows vistaでPHP開発環境の構築</title>
		<link>http://mizoochi.com/archives/791.html</link>
		<comments>http://mizoochi.com/archives/791.html#comments</comments>
		<pubDate>Thu, 14 Jan 2010 18:12:36 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[興味関心]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=791</guid>
		<description><![CDATA[
apache2.2.14 + PHP5.3.1 + MySQL 5.1.42 でのwindows vista開発環境構築メモ。

apacheをインストール
apacheのサイトから最新版をダウンロード

phpをイン [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://mizoochi.com/files/2010/01/0114.gif" alt="apache+php+mysql" title="apache+php+mysql" width="600" height="140" /></p>
<p>apache2.2.14 + PHP5.3.1 + MySQL 5.1.42 でのwindows vista開発環境構築メモ。</p>
<ol class="txt80">
<li>apacheをインストール<br />
<a href="http://httpd.apache.org/download.cgi" target="_blank">apacheのサイトから最新版をダウンロード</a></p>
</li>
<li>phpをインストール<br />
<a href="http://windows.php.net/download/" target="_blank">PHPのサイトから最新版「VC6 x86 Thread Safe」をダウンロード</a></p>
</li>
<li>mysqlをインストール<br />
<a href="http://httpd.apache.org/download.cgi" target="_blank">MySQLのサイトから最新版「MySQL Community Server」をダウンロード</a><br />
※ここでessentialと付いたものは最小構成という意味です。特にフルインストールを望まなければ、essentialを選択</p>
</li>
</ol>
<p>&#8212;<br />
<strong>■ハマッた所</strong><br />
<u>MySQLのmysql_connectで何故か接続エラー</u></p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>Plain Text</strong></small></div>
<pre class="brush: plain; auto-links: false; font-size: 80%;" style="margin:18px 0;">trying to connect via tcp://localhost:3306</pre>
<p>「localhost:3306へ接続を試しています」との事。<br />
最初の接続を開く際には繋がるのに、mysql_connect関数で呼び出すと接続不可。</p>
<p>googleさんを調べていたらhostsファイルが悪さをしている事が分かりました。<br />
IPv6での設定が127.0.0.1 localhostの後に来ていると、今回のような動作になるようです。<br />
vistaの場合「C:\windows\system32\drivers\etc」内にhostsファイルがあるので、<br />
エディタで管理者権限で開いて編集。<br />
「::1 localhost」を削除もしくはコメントアウトする事で回避出来ます。</p>
<p>　</p>
<p><u>MySQLの再インストールの際に、アンインストールしたはずの設定が保存されている。</u><br />
どうやらMySQLをコンパネから削除しても、設定データなどはそのまま残るようで<br />
手動で削除する必要があります。</p>
<p>□サービスの削除<br />
「管理ツール」→「サービス」→「MySQL」をサービス停止。<br />
コマンドプロンプトを右クリック「管理者として実行」</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>Plain Text</strong></small></div>
<pre class="brush: plain; auto-links: false; font-size: 80%;" style="margin:18px 0;">
sc delete MySQL
</pre>
<p>※MySQLはサービス名。人によってはMySQL5とかも。</p>
<p>□設定データ削除<br />
コンパネからアンインストール後、<br />
C:\Program Files\内のMySQLフォルダ削除<br />
C:\ProgramData\内のMySQLフォルダ削除</p>
<p>特にProgramData内のMySQLフォルダ削除しないと、パスワードなどは残ります。</p>
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.509 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/590.html" rel="bookmark" title="2009 年 6 月 30 日">AS3.0のTweenが動作しない場合の対処</a></li>

<li><a href="http://mizoochi.com/archives/535.html" rel="bookmark" title="2009 年 5 月 4 日">りんご</a></li>

<li><a href="http://mizoochi.com/archives/9.html" rel="bookmark" title="2008 年 10 月 28 日">WordPress MU 入れてみました。</a></li>

<li><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>

<li><a href="http://mizoochi.com/archives/80.html" rel="bookmark" title="2008 年 11 月 20 日">ゲーム</a></li>
</ul><!-- Similar Posts took 3.620 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/791.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/791.html" />
	</item>
		<item>
		<title>最近気になっている物まとめ</title>
		<link>http://mizoochi.com/archives/758.html</link>
		<comments>http://mizoochi.com/archives/758.html#comments</comments>
		<pubDate>Tue, 15 Sep 2009 03:35:40 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[興味関心]]></category>
		<category><![CDATA[リスト]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=758</guid>
		<description><![CDATA[最近、今まで以上に触りたい・習得したいものが多くて目移り。
順番にやらないとしっかり覚えられない小さな脳みそなのが悲しい；
ようするに寝る間も惜しんで勉強しろと。
そんなわけで気になっているリスト

PHPフレームワーク [...]]]></description>
			<content:encoded><![CDATA[<p>最近、今まで以上に触りたい・習得したいものが多くて目移り。<br />
順番にやらないとしっかり覚えられない小さな脳みそなのが悲しい；</p>
<p>ようするに寝る間も惜しんで勉強しろと。</p>
<p>そんなわけで気になっているリスト</p>
<ul class="txt80 mb20">
<li class="mb10"><a href="http://rhaco.org/" target="_blank">PHPフレームワークrhaco</a><br />cakePHP程の大きなフレームワークじゃないのはポイント高。資料が少ないのが難点なのと内部構造の調査に時間が必要。rhaco2が出てからでも良いかも随分変わるっぽいし。</li>
<li class="mb10"><a href="http://cakephp.jp/" target="_blank">cakePHP1.2</a><br />1.2って所がポイント。大御所PHPフレームワーク。良いんだけど規模感が大きい。</li>
<li class="mb10"><a href="http://php.cheetan.net/" target="_blank">ちいたんフレームワーク</a><br />最軽量フレームワーク構想を元に出来上がっているみたい。0開発は嫌だけどpearも嫌って人にはいいかな？　規模感はcakePHP > rhaco > ちいたん（他はryく</li>
<li class="mb10">HTML5<br />正直未知数。worker機能やuser databaseは将来のwebを感じる。canvasは結局Javascriptなんでしょ。と</li>
<li class="mb10">iphone SDK<br />再加熱。OS3以降は触ってないし、一発勝負！って感じが良い。これから企業の参入も増えそうだしね。</li>
<li class="mb10"><a href="http://openpear.org/" target="_blank">Openpear</a><br />とりあえず登録せな！</li>
<li class="mb10">鯖構築<br />数こなさないとなぁ…どうせならatom使って超省電力・意外と高性能自作鯖とか作りたい。</li>
<li class="mb10">機械作りたい！<br />USBとかPCに挿して使う感じのガジェット作りたい。スイッチ構想。</li>
<li class="mb10">確定申告<br />色々書籍を読み漁っている。知らないことばかりで目から鱗。</li>
<li class="mb10">iphone nano<br />iphoneも持ってるし。べ、別に欲しいわけじゃないんだからね！</li>
</ul>
<p>まだまだあったけどとりあえずさっと思いついたものを並べてみた。<br />
少しずつでも実現させるべし。<br />
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.523 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/207.html" rel="bookmark" title="2008 年 1 月 16 日">Rails から cake へ</a></li>

<li><a href="http://mizoochi.com/archives/219.html" rel="bookmark" title="2008 年 5 月 15 日">MGS4に対する期待と不安</a></li>

<li><a href="http://mizoochi.com/archives/833.html" rel="bookmark" title="2010 年 1 月 16 日">バーベタイム</a></li>

<li><a href="http://mizoochi.com/archives/606.html" rel="bookmark" title="2009 年 7 月 1 日">iphone 3GS購入</a></li>

<li><a href="http://mizoochi.com/archives/9.html" rel="bookmark" title="2008 年 10 月 28 日">WordPress MU 入れてみました。</a></li>
</ul><!-- Similar Posts took 3.724 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/758.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/758.html" />
	</item>
		<item>
		<title>AutoPagerizeとsyntaxhighlighterプラグインをWordPressで使う</title>
		<link>http://mizoochi.com/archives/621.html</link>
		<comments>http://mizoochi.com/archives/621.html#comments</comments>
		<pubDate>Fri, 10 Jul 2009 09:21:42 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[AutoPagerize]]></category>
		<category><![CDATA[syntaxhighlighter]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=621</guid>
		<description><![CDATA[
最近このブログの機能アップに費やす時間を増やしています。
色々と便利にしたいなとWP-AutoPagerizeプラグインを入れてみました。
これは元々FirefoxのGreaseMonkeyというアドオンの追加するユー [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://mizoochi.com/files/2009/07/20090710.jpg" alt="Autopagerとsyntax-highlighter" title="Autopagerとsyntax-highlighter" width="600" height="180" /></p>
<p>最近このブログの機能アップに費やす時間を増やしています。<br />
色々と便利にしたいなと<a href="http://moto-mono.net/2009/01/26/wp-autopagerize.html" target="_blank">WP-AutoPagerizeプラグイン</a>を入れてみました。</p>
<p>これは元々FirefoxのGreaseMonkeyというアドオンの追加するユーザスクリプトで、検索結果やニュースページを見る際にページ遷移をせずにある一定のスクロールをした段階で、次のページの記事が追加されるという優れもの。</p>
<p>ただ、その上で問題になったのが<a href="http://wppluginsj.sourceforge.jp/syntax-highlighter/" target="_blank">syntaxhighlighterプラグイン</a>。<br />
これはソースコードを見せる際に綺麗に整形してくれるプラグインです。</p>
<p>何が問題かというと、次ページ記事を読み込んで表示する際にソースコードがあった場合に、syntaxhighlighterの表示処理の動作をしてくれないというものでした。<br />
そのため両方のプラグインの調整が必要になりました。</p>
<p>その調整のやり方を記載しておきます。</p>
<p><span id="more-621"></span><br />
まずは、Autopagerが新しいページを読み込んだ際にsyntaxhighlighterの関数を呼び出すよう設定します。wp-autopagerize.jsはソースコードが圧縮されているので、15行目をコピペして貼り付けて<a href="http://jsbeautifier.org/" target="_blank">Online Beautifier for JavaScript</a>などで綺麗に整形しなおしてもらいましょう。<br />
50行目にソースコードを追加します。</p>
<p><strong>wp-autopagerize.js</strong></p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>Java Script</strong></small></div>
<pre class="brush: jscript; first-line: 35; highlight: 49; auto-links: false; font-size: 80%;" style="margin:18px 0;">
var o = function () {
  l.show();
  $.ajax({
    url: k,
    success: function (h) {
      if ($(pageRizeClassName, h).length &gt; 0) {
        j++;
        c.before(&quot;&lt;p id=&#039;page-&quot; + j + &quot;&#039; class=\&quot;pageNum txt75\&quot;&gt;&lt;a href=&#039;&quot; + k + &quot;&#039;&gt;&quot; + j + &quot;&lt;/a&gt; ページ目&lt;/p&gt;&quot;);
        k = $(&quot;p.pageNav a.next&quot;, h).length &gt; 0 ? $(&quot;p.pageNav a.next&quot;, h).attr(&quot;href&quot;) : null;
        c.before($(pageRizeClassName, h).filter(function () {
          return ! $(this).hasClass(&quot;pageNav&quot;);
        }));
        m = b.scrollHeight;
        g();
        SyntaxHighlighter.highlight();//この行を追加
      }
      l.hide();
    },
    error: function () {
      l.hide();
    }
  });
};
</pre>
<p>これでJavascript側の修正は終了。続いてsyntaxhighlighterを修正します。</p>
<p><strong>syntax_highlighter.php</strong></p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>PHP</strong></small></div>
<pre class="brush: php; first-line: 110; highlight: 116; auto-links: false; font-size: 80%;" style="margin:18px 0;">
function add_footer(){
	$enabled = false;
	foreach ($this-&gt;options as $key =&gt; $val) {if ($val[0]) {$enabled = true; break;}}
	if (!$enabled) return;

	$scripts  = &quot;&lt;script type=\&quot;text/javascript\&quot; src=\&quot;{$this-&gt;plugin_url}js/shCore.js?ver={$this-&gt;plugin_ver}\&quot;&gt;&lt;/script&gt;\n&quot;;
	$scripts .= &quot;&lt;script type=\&quot;text/javascript\&quot; src=\&quot;{$this-&gt;plugin_url}js/shBrushAll.js?ver={$this-&gt;plugin_ver}\&quot;&gt;&lt;/script&gt;\n&quot;;

/*
	// Bash / shell
	if (isset($this-&gt;options[&quot;bash&quot;]) &amp;&amp; $this-&gt;options[&quot;bash&quot;][0])
		$scripts .= &quot;&lt;script type=\&quot;text/javascript\&quot; src=\&quot;{$this-&gt;plugin_url}js/shBrushBash.js?ver={$this-&gt;plugin_ver}	

	(中略)

	elseif (isset($this-&gt;options[&quot;xslt&quot;]) &amp;&amp; $this-&gt;options[&quot;xslt&quot;][0])
		$scripts .= &quot;&lt;script type=\&quot;text/javascript\&quot; src=\&quot;{$this-&gt;plugin_url}js/shBrushXml.js?ver={$this-&gt;plugin_ver}\&quot;&gt;&lt;/script&gt;\n&quot;;
*/
	echo $scripts;
</pre>
<p>上記の修正は、syntaxhighlighterでは各プログラムソース毎にJavascriptファイルを持っていて、読み込んだ記事内で使っているプログラム表示用のJavascriptのうちどれを読み込むかを判定しています。<br />
今回は判定を飛ばして、各プログラム用JSを一つのファイル「shBrushAll.js」にまとめてそれを読み込ませることで対応しています。
<p>
&nbsp;
</p>
<p><strong>使用プラグイン</strong><br />
<a href="http://moto-mono.net/2009/01/26/wp-autopagerize.html" target="_blank">WP-AutoPagerizeプラグイン</a><br />
<a href="http://wppluginsj.sourceforge.jp/syntax-highlighter/" target="_blank">syntaxhighlighterプラグイン</a><br />
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.533 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/224.html" rel="bookmark" title="2008 年 9 月 9 日">【注意】YSlowプラグインの挙動</a></li>

<li><a href="http://mizoochi.com/archives/610.html" rel="bookmark" title="2009 年 7 月 7 日">携帯とiphone対応しました</a></li>

<li><a href="http://mizoochi.com/archives/223.html" rel="bookmark" title="2008 年 8 月 18 日">jQuery版画像プロテクションプラグイン をリリース！！</a></li>

<li><a href="http://mizoochi.com/archives/50.html" rel="bookmark" title="2008 年 11 月 8 日">jQuery &#8211; 制作現場で使えるプラグインあれこれ</a></li>

<li><a href="http://mizoochi.com/archives/269.html" rel="bookmark" title="2008 年 12 月 27 日">はてなブログのデータを移行しました。</a></li>
</ul><!-- Similar Posts took 4.571 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/621.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/621.html" />
	</item>
		<item>
		<title>携帯とiphone対応しました</title>
		<link>http://mizoochi.com/archives/610.html</link>
		<comments>http://mizoochi.com/archives/610.html#comments</comments>
		<pubDate>Tue, 07 Jul 2009 00:16:18 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[Word Press]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[携帯対応]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=610</guid>
		<description><![CDATA[
ブログを携帯対応してみました。
WordPressって素晴らしい！プラグインで難なく対応出来ました。
このプラグインの手軽さは他のブログシステムだと得られないなぁ…と感動。
ちなみにWPtouchとKtai Style [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://mizoochi.com/files/2009/07/20090707.jpg" alt="iphoneとdocomo携帯" title="iphoneとdocomo携帯" width="600" height="278" /></p>
<p>ブログを携帯対応してみました。<br />
WordPressって素晴らしい！プラグインで難なく対応出来ました。<br />
このプラグインの手軽さは他のブログシステムだと得られないなぁ…と感動。</p>
<p>ちなみに<a href="http://www.bravenewcode.com/wptouch/" target="_blank">WPtouch</a>と<a href="http://wppluginsj.sourceforge.jp/ktai_style/" target="_blank">Ktai Style</a>というプラグインを入れて、オプション設定いじって完成。<br />
一部携帯の方はヘッダ画像を出したいのでテンプレートファイルを調整していますが<br />
作業自体は30分かかってません。</p>
<p>他のブログにはもう戻れない…<br />
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.599 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/621.html" rel="bookmark" title="2009 年 7 月 10 日">AutoPagerizeとsyntaxhighlighterプラグインをWordPressで使う</a></li>

<li><a href="http://mizoochi.com/archives/224.html" rel="bookmark" title="2008 年 9 月 9 日">【注意】YSlowプラグインの挙動</a></li>

<li><a href="http://mizoochi.com/archives/269.html" rel="bookmark" title="2008 年 12 月 27 日">はてなブログのデータを移行しました。</a></li>

<li><a href="http://mizoochi.com/archives/742.html" rel="bookmark" title="2009 年 8 月 13 日">ウェブの未来 &#8211; WISH2009</a></li>

<li><a href="http://mizoochi.com/archives/9.html" rel="bookmark" title="2008 年 10 月 28 日">WordPress MU 入れてみました。</a></li>
</ul><!-- Similar Posts took 3.470 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/610.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/610.html" />
	</item>
		<item>
		<title>携帯振り分け</title>
		<link>http://mizoochi.com/archives/463.html</link>
		<comments>http://mizoochi.com/archives/463.html#comments</comments>
		<pubDate>Thu, 12 Feb 2009 17:24:23 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[携帯]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=463</guid>
		<description><![CDATA[厳密に携帯の機種毎に飛ばすページを変えたい場合や、特定の機種だけを別ページにしたい場合のプログラムを書いてみた。
誰でも追加・変更しやすいよう、CSVファイルを更新すればオッケー。
クラスにまとめたので、トップページのp [...]]]></description>
			<content:encoded><![CDATA[<p>厳密に携帯の機種毎に飛ばすページを変えたい場合や、特定の機種だけを別ページにしたい場合のプログラムを書いてみた。<br />
誰でも追加・変更しやすいよう、CSVファイルを更新すればオッケー。</p>
<p>クラスにまとめたので、トップページのphp等の最初にrequire_onceなどで読み込んであげれば動作します。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>PHP</strong></small></div>
<pre class="brush: php; auto-links: false; font-size: 80%;" style="margin:18px 0;">
//CSVファイル場所を指定する場合は以下にパス記述
define(SETPATH,&quot;&quot;);

class mobile_divergence {

var $ua;
var $url = &quot;mobile_list.csv&quot;;

//_constract
function mobile_divergence($url=false){
	$this-&gt;ua = $_SERVER[&#039;HTTP_USER_AGENT&#039;];
	if($url) $this-&gt;url	= $url;
	$this-&gt;loadcsv();
}
function loadcsv(){
	if($this-&gt;is_url($this-&gt;url)){
		$datas = file($this-&gt;url);
	} else {
		$datas = file_get_contents($this-&gt;url);
	}
	return $this-&gt;Jumping($datas);
}
function Jumping($d){
	for ($i=0;$i&lt;sizeof($d);$i++){
		$csvdatas[$i] = split(&quot;,&quot;,$d[$i]);
		if(strstr($this-&gt;ua,$csvdatas[$i][0])) header(&#039;location: &#039;.$csvdatas[$i][1]);
	}
}
function is_url($text){
	return (!preg_match(&#039;/^(https?|ftp)(:\/\/[-_.!~*\&#039;()a-zA-Z0-9;\/?:\@&amp;=+\$,%#]+)$/&#039;, $text)) ? TRUE : FALSE ;
}

}
$mobileObj = new mobile_divergence(SETPATH);
</pre>
<p>file_get_contents関数部分はテストしていないので、動作しないかも…</p>
<p>http://～からの絶対パスで書くと、そっちが動くはずです。設定ファイルは必ず同じ箇所から判定ファイルをダウンロードする感じにも出来る。</p>
<p>ちなみにCSVの中身は<br />
「ユーザーエージェント（一部）」、「移動先URL」</p>
<p>ユーザーエージェントは各キャリアのサイトに記載されていますので、ご確認を。</p>
<p><span id="more-463"></span><br />
SEOの件書いたら、次の日に3位まであがって、現在、8位転落…<br />
んーようわからん。analytics入れなくちゃね。。</p>
<p>ヨメが最近買った漫画。小心者で漫画家の旦那とステキ？変？な奥様のお話。ゆる～～い感じ。</p>
<div class="amazlet-box clears">
<div class="amazlet-image" style="float:left;">
<a href="http://www.amazon.co.jp/exec/obidos/ASIN/4575941603/fujirin-22/ref=nosim/" name="amazletlink" target="_blank"><br />
<img src="http://ecx.images-amazon.com/images/I/51LBoIrjddL._SL160_.jpg" alt="うちの妻ってどうでしょう? 1 (1) (アクションコミックス)" style="border: none;" /></a></div>
<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
<div class="amazlet-name" style="line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4575941603/fujirin-22/ref=nosim/" name="amazletlink" target="_blank">うちの妻ってどうでしょう?<br />1 (1) (アクションコミックス)</a>
</div>
<div class="amazlet-detail">福満 しげゆき <br />双葉社 </div>
<div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4575941603/fujirin-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div>
</div>
</div>
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.593 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/213.html" rel="bookmark" title="2008 年 2 月 28 日">addEventListenerの第二引数について</a></li>

<li><a href="http://mizoochi.com/archives/621.html" rel="bookmark" title="2009 年 7 月 10 日">AutoPagerizeとsyntaxhighlighterプラグインをWordPressで使う</a></li>

<li><a href="http://mizoochi.com/archives/208.html" rel="bookmark" title="2008 年 1 月 17 日">動画ファイルのプロパティの抽出（PHP）</a></li>

<li><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>

<li><a href="http://mizoochi.com/archives/610.html" rel="bookmark" title="2009 年 7 月 7 日">携帯とiphone対応しました</a></li>
</ul><!-- Similar Posts took 6.162 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/463.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/463.html" />
	</item>
		<item>
		<title>popenによるメール送信とPHPセーフモード</title>
		<link>http://mizoochi.com/archives/312.html</link>
		<comments>http://mizoochi.com/archives/312.html#comments</comments>
		<pubDate>Thu, 22 Jan 2009 10:48:25 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[セーフモード]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=312</guid>
		<description><![CDATA[PHPのセーフモードだとpopenによるメール送信って動作しません。
動作実証済み。※正確には「safe_mode_exec_dir  の中でのみ実行可能」らしい。
あとは、mb_send_mail関数使っている人は、第 [...]]]></description>
			<content:encoded><![CDATA[<p>PHPのセーフモードだとpopenによるメール送信って動作しません。<br />
動作実証済み。※正確には「safe_mode_exec_dir  の中でのみ実行可能」らしい。</p>
<p>あとは、mb_send_mail関数使っている人は、第5引数が使えないらしいです。第4引数までは大丈夫らしい。<br />
mail関数も同様です。</p>
<p><a href="http://php.benscom.com/manual/ja/features.safe-mode.functions.php" target="_blank">セーフモードにより制限を受けるか無効となる関数</a></p>
<p>いろいろネット中検索したけど、情報がなかった。。；<br />
ちなみにセーフモードを調べる方法は</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>PHP</strong></small></div>
<pre class="brush: php; auto-links: false; font-size: 80%;" style="margin:18px 0;">
if(get_cfg_var(&quot;safe_mode&quot;)){
　　//セーフモードのときの処理
} else {
　　//セーフモードではないときの処理
}
</pre>
<p>これでオッケーです。もし他のサーバで動く関数が動かない！など問題がある場合は<br />
セーフモードを疑ってみましょう。</p>
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.532 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/399.html" rel="bookmark" title="2009 年 2 月 8 日">URIデータスキーム</a></li>

<li><a href="http://mizoochi.com/archives/18.html" rel="bookmark" title="2008 年 10 月 29 日">sh512 &#8211; 暗号化とパスワード</a></li>

<li><a href="http://mizoochi.com/archives/212.html" rel="bookmark" title="2008 年 2 月 22 日">レスが付いたらスレッドを上に上げるSQL</a></li>

<li><a href="http://mizoochi.com/archives/80.html" rel="bookmark" title="2008 年 11 月 20 日">ゲーム</a></li>

<li><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
</ul><!-- Similar Posts took 3.325 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/312.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/312.html" />
	</item>
		<item>
		<title>はてなブログのデータを移行しました。</title>
		<link>http://mizoochi.com/archives/269.html</link>
		<comments>http://mizoochi.com/archives/269.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 03:17:07 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[Word Press]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[はてな]]></category>
		<category><![CDATA[移行]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=269</guid>
		<description><![CDATA[wordpress(wp)の2.7へのバージョンアップと同時に
はてなで書いていた記事データをこちらに移行しました。
（写真データはまだはてな参照中）
なので記事数増えました～！
デザインもまだ簡易的なものなので来年早め [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ja.wordpress.org/" target="_blank">wordpress(wp)</a>の2.7へのバージョンアップと同時に<br />
はてなで書いていた記事データをこちらに移行しました。<br />
（写真データはまだはてな参照中）</p>
<p>なので記事数増えました～！<br />
デザインもまだ簡易的なものなので来年早めにデザインも一新していきます。<br />
プラグイン開発や右上の開発したプログラム公開などもデータ溜まっているので<br />
早めに公開出来るようします！</p>
<p>ちなみに<a href="http://mu.wordpress.org/" target="_blank">wordpress mu(wpmu)</a>使っていたのですが、wpからの移行だと写真データとかも<br />
インポート出来るのですね。。非常に優秀（当たり前）</p>
<p>プラグインのインストールとか楽だし。<br />
今後のバージョンも楽しみですね<br />
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.518 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/580.html" rel="bookmark" title="2009 年 6 月 17 日">少しだけ</a></li>

<li><a href="http://mizoochi.com/archives/9.html" rel="bookmark" title="2008 年 10 月 28 日">WordPress MU 入れてみました。</a></li>

<li><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>

<li><a href="http://mizoochi.com/archives/399.html" rel="bookmark" title="2009 年 2 月 8 日">URIデータスキーム</a></li>

<li><a href="http://mizoochi.com/archives/564.html" rel="bookmark" title="2009 年 6 月 12 日">GoogleDeveloperDay2009 ～ OpenSocial Hackathon</a></li>
</ul><!-- Similar Posts took 3.284 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/269.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/269.html" />
	</item>
		<item>
		<title>extract関数って便利。</title>
		<link>http://mizoochi.com/archives/183.html</link>
		<comments>http://mizoochi.com/archives/183.html#comments</comments>
		<pubDate>Sat, 20 Dec 2008 14:43:33 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[制作]]></category>
		<category><![CDATA[extract]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=183</guid>
		<description><![CDATA[意外と使いそうで、使わない関数なんだけども
配列使う上では便利な関数。自分メモの意味も込めて。
配列に付けたキーをそのまま変数として使うことが出来ます。
上記を実行結果は。
青森りんごオレンジメロンりんご
もしも変数が被 [...]]]></description>
			<content:encoded><![CDATA[<p>意外と使いそうで、使わない関数なんだけども<br />
配列使う上では便利な関数。自分メモの意味も込めて。</p>
<p>配列に付けたキーをそのまま変数として使うことが出来ます。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>PHP</strong></small></div>
<pre class="brush: php; auto-links: false; font-size: 80%;" style="margin:18px 0;">
$apple = &quot;青森りんご&quot;;

$arr = array(
	&quot;apple&quot;	=&gt; &quot;りんご&quot;,
	&quot;orange&quot;	=&gt; &quot;オレンジ&quot;,
	&quot;melon&quot;	=&gt; &quot;メロン&quot;,
);
extract($arr, EXTR_PREFIX_SAME, &quot;pre&quot;);

echo $apple.$orange.$melon.$pre_apple;
</pre>
<p>上記を実行結果は。</p>
<pre name="code" class="php">青森りんごオレンジメロンりんご</pre>
<p>もしも変数が被ったら上記の場合は、「pre_」が付いて変数となります。<br />
「EXTR_PREFIX_SAME」部分は他にも色々あります。<br />
個人的には「EXTR_PREFIX_ALL」がおすすめ。わりかしコードの統一ルール作りやすいですしね。</p>
<p>以下、<a href="http://www.phppro.jp/phpmanual/php/function.extract.html" target="_blank">PHPプロ</a>引用</p>
<blockquote><p><em>EXTR_OVERWRITE</em><br />
同じ名前の変数があった場合、存在する変数が上書きされます。</p>
<p><em>EXTR_SKIP</em><br />
同じ名前の変数があった場合、存在する変数は上書きされません。</p>
<p><em>EXTR_PREFIX_SAME</em><br />
同じ名前の変数があった場合、prefix を前につけた新しい変数となります。</p>
<p><em>EXTR_PREFIX_ALL</em><br />
全ての変数の前に prefix を付けます。PHP 4.0.5 以降、接頭辞を数値とすることも可能です。</p>
<p><em>EXTR_PREFIX_INVALID</em><br />
無効または数値の変数名のみに接頭辞 prefix を付ける。このフラグは、PHP 4.0.5 で追加されました。</p>
<p><em>EXTR_IF_EXISTS</em><br />
カレントのシンボルテーブルに既に存在する場合にのみ上書きします。<br />
例えば $_REQUEST 以外にあなたが定義した変数のみを展開し 有効な変数としたいような場合に有用です。このフラグは PHP 4.2.0 で追加されました。</p>
<p><em>EXTR_PREFIX_IF_EXISTS</em><br />
同じ変数だが接頭辞をつけていないバージョンの変数が カレントのシンボルテーブルに存在する場合にのみ変数を生成します。このフラグは PHP 4.2.0 で追加されました。</p>
<p><em>EXTR_REFS</em><br />
変数を参照として展開します。 これはインポート済みの変数が、 var_array パラメータの値に常に参照付けられることを意味します。このフラグを単独で使用するか、 あるいはextract_type と和算することにより、 他のフラグとそれを組み合わせることができます。<br />
このフラグは PHP 4.3.0 で追加されました。</p></blockquote>
<p>といった具合です。<br />
関数は便利ですが、上記のような作りはforeach使えば全然出来るわけです。<br />
そちらでも書ける事が応用効くし、重要かな。。と思います。</p>
<div class="amazlet-box clears">
<div class="amazlet-image" style="float:left;">
<a href="http://www.amazon.co.jp/exec/obidos/ASIN/4873113423/fujirin-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41Bf6ZV1fRL._SL160_.jpg" alt="プログラミングPHP 第2版" style="border: none;" /></a>
</div>
<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
<p class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4873113423/fujirin-22/ref=nosim/" name="amazletlink" target="_blank">プログラミングPHP 第2版</a></p>
<p class="amazlet-detail">Rasmus Lerdorf Kevin Tatroe Peter MacIntyre <br />オライリー・ジャパン</p>
<p class="amazlet-link" style="margin-top:5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4873113423/fujirin-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></p>
</div>
</div>
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.537 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/621.html" rel="bookmark" title="2009 年 7 月 10 日">AutoPagerizeとsyntaxhighlighterプラグインをWordPressで使う</a></li>

<li><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>

<li><a href="http://mizoochi.com/archives/555.html" rel="bookmark" title="2009 年 5 月 27 日">鵜飼</a></li>

<li><a href="http://mizoochi.com/archives/212.html" rel="bookmark" title="2008 年 2 月 22 日">レスが付いたらスレッドを上に上げるSQL</a></li>

<li><a href="http://mizoochi.com/archives/508.html" rel="bookmark" title="2009 年 3 月 4 日">Ajax 通信でのキャッシュ</a></li>
</ul><!-- Similar Posts took 4.101 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/183.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/183.html" />
	</item>
		<item>
		<title>sh512 &#8211; 暗号化とパスワード</title>
		<link>http://mizoochi.com/archives/18.html</link>
		<comments>http://mizoochi.com/archives/18.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 12:43:50 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=18</guid>
		<description><![CDATA[パスワードなどを暗号化する場合、復号出来ないのはもちろんですが
最近まで使っていたPHPのsha1関数がどうやら今では使ってはいけないと推奨されているようです。
SHA1でハッシュ化したパスワードは危険になった
詳しくは [...]]]></description>
			<content:encoded><![CDATA[<p>パスワードなどを暗号化する場合、復号出来ないのはもちろんですが<br />
最近まで使っていたPHPの<a href="http://jp.php.net/manual/ja/function.sha1.php" target="_blank">sha1関数</a>がどうやら今では使ってはいけないと推奨されているようです。</p>
<p><a href="http://blog.ohgaki.net/sha1a_sa_a_a_ma_ya_a_a_a_a_sa_ma_fa_a_ma" target="_blank">SHA1でハッシュ化したパスワードは危険になった</a><br />
詳しくは上記参照。</p>
<p>調べてみたところ「<a href="http://php.mirror.camelnetwork.com/manual/ja/function.hash.php" target="_blank">sha512</a>」なるものがあるらしいとの事で、調べてみたところPHP5.1.2以降であれば、ハッシュ拡張モジュールが標準で有効となっているようです。</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>PHP</strong></small></div>
<pre class="brush: php; auto-links: false; font-size: 80%;" style="margin:18px 0;">$str = &quot;abcdefghijk&quot;;
hash(&#039;sha512&#039;, $str);</pre>
<p>結果は&#8230;</p>
<div style="position:relative;top:18px;margin-top:-18px;"><small><strong>Plain Text</strong></small></div>
<pre class="brush: plain; auto-links: false; font-size: 80%;" style="margin:18px 0;">2798fd001ee8800e3da09ee99ae9600de2d0ccf464ab782c92fcc06ce384
7cef0743365f1d49c2c8b4426db1635433f937d508672a9d0cb673b84f36
8eca1b23</pre>
<p>となります。今後はこっち使っていかなきゃ。<br />
しかしセキュリティの高いことは分かるけど、復号出来ない仕組みを使うとリマインダや<br />
他の方法でパスワードを変更可能な仕組みを作らなきゃならないのが、面倒ですな。</p>
<div class="amazlet-box clears">
<div class="amazlet-image" style="float:left"><a name="amazletlink" href="http://www.amazon.co.jp/exec/obidos/ASIN/4797322977/fujirin-22/ref=nosim/" target="_blank"><img style="border: none" src="http://ecx.images-amazon.com/images/I/51Y8P0WQV7L._SL160_.jpg" alt="暗号技術入門-秘密の国のアリス" /></a></div>
<div class="amazlet-info" style="float:left;margin-left:15px">
<div class="amazlet-name" style="margin-bottom:10px"><a name="amazletlink" href="http://www.amazon.co.jp/exec/obidos/ASIN/4797322977/fujirin-22/ref=nosim/" target="_blank">暗号技術入門-秘密の国のアリス</a></div>
<div class="amazlet-detail">結城 浩 ソフトバンククリエイティブ<br />
売り上げランキング: 22370</div>
<div class="amazlet-link" style="margin-top: 5px"><a name="amazletlink" href="http://www.amazon.co.jp/exec/obidos/ASIN/4797322977/fujirin-22/ref=nosim/" target="_blank">Amazon.co.jp で詳細を見る</a></div>
</div>
</div>
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.523 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/508.html" rel="bookmark" title="2009 年 3 月 4 日">Ajax 通信でのキャッシュ</a></li>

<li><a href="http://mizoochi.com/archives/524.html" rel="bookmark" title="2009 年 4 月 16 日">mixiアプリの副産物 &#8211; ニコニコ動画API関連動画 抽出</a></li>

<li><a href="http://mizoochi.com/archives/791.html" rel="bookmark" title="2010 年 1 月 15 日">windows vistaでPHP開発環境の構築</a></li>

<li><a href="http://mizoochi.com/archives/758.html" rel="bookmark" title="2009 年 9 月 15 日">最近気になっている物まとめ</a></li>

<li><a href="http://mizoochi.com/archives/209.html" rel="bookmark" title="2008 年 1 月 18 日">ひとまず先日インストールしたcakePHPを始める事にしました。</a></li>
</ul><!-- Similar Posts took 3.378 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/18.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/18.html" />
	</item>
		<item>
		<title>WordPress MU 入れてみました。</title>
		<link>http://mizoochi.com/archives/9.html</link>
		<comments>http://mizoochi.com/archives/9.html#comments</comments>
		<pubDate>Tue, 28 Oct 2008 06:48:25 +0000</pubDate>
		<dc:creator>mizota</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Word Press]]></category>

		<guid isPermaLink="false">http://mizoochi.com/?p=9</guid>
		<description><![CDATA[とりあえずWord Press MU を入れてみました。
こっちのほうがある意味MTに近い機能のようなので、あえてこちらで。
インストールはすごい簡単。
ファイル入れてから「index-install.php」にアクセス [...]]]></description>
			<content:encoded><![CDATA[<p>とりあえずWord Press MU を入れてみました。<br />
こっちのほうがある意味MTに近い機能のようなので、あえてこちらで。</p>
<p>インストールはすごい簡単。<br />
ファイル入れてから「index-install.php」にアクセスするだけ。<br />
あとはデータベースの設定を入れてあげれば完成。</p>
<p>なんとお手軽。</p>
<p>だた気になった点として、サブドメインでのブログの構築かフォルダ以下でのブログ構築を選ぶんだけども<br />
どっちもやりたい場合は？とか、まだまだ調べないといけないことが多いみたいですね。</p>
<p>本体のダウンロードは<br />
<a href="http://mu.wordpress.org/download/">http://mu.wordpress.org/download/</a></p>
<p>日本語化はGOOGLE codeにてダウンロード<br />
<a href="http://code.google.com/p/wpmu-ja/">http://code.google.com/p/wpmu-ja/</a></p>
<p>wordpressの本でいろいろ見たけど、タグ辞典的なものが良いよね。<br />
そんなわけで以下の本お勧め。</p>
<div class="amazlet-box clears">
<div class="amazlet-image" style="float:left"><a name="amazletlink" href="http://www.amazon.co.jp/exec/obidos/ASIN/479811667X/fujirin-22/ref=nosim/" target="_blank"><img style="border: none" src="http://ecx.images-amazon.com/images/I/51wvZ9nbUSL._SL160_.jpg" alt="WordPress逆引きデザイン事典[2.X対応]" /></a></div>
<div class="amazlet-info" style="float:left;margin-left:15px">
<div class="amazlet-name" style="margin-bottom:10px"><a name="amazletlink" href="http://www.amazon.co.jp/exec/obidos/ASIN/479811667X/fujirin-22/ref=nosim/" target="_blank">WordPress逆引きデザイン事典[2.X対応]</a>
</div>
<div class="amazlet-detail">高山 一登 大久保 アキラ 酒井 隆　翔泳社<br />
売り上げランキング: 28516</div>
<div class="amazlet-link" style="margin-top: 5px"><a name="amazletlink" href="http://www.amazon.co.jp/exec/obidos/ASIN/479811667X/fujirin-22/ref=nosim/" target="_blank">Amazon.co.jp で詳細を見る</a></div>
</div>
</div>
<h3>Popular Posts:</h3>
<ul class="popular-posts txt75">
<li class="txt75"><a href="http://mizoochi.com/archives/126.html" rel="bookmark" title="2008 年 11 月 27 日">jQuery ifによる要素の判定</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/145.html" rel="bookmark" title="2008 年 12 月 2 日">一新。</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/734.html" rel="bookmark" title="2009 年 8 月 9 日">iframe等を使った子から親へイベントを渡す方法</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/211.html" rel="bookmark" title="2008 年 2 月 21 日">いつも忘れちゃうので&#8230;UNIXタイムスタンプの変換</a></li>
<li class="txt75"><a href="http://mizoochi.com/archives/216.html" rel="bookmark" title="2008 年 3 月 21 日">JSONデータの使い方</a></li>
</ul>
<p><!-- popular Posts took 2.585 ms --></p>
Similar Posts:<ul><li><a href="http://mizoochi.com/archives/610.html" rel="bookmark" title="2009 年 7 月 7 日">携帯とiphone対応しました</a></li>

<li><a href="http://mizoochi.com/archives/580.html" rel="bookmark" title="2009 年 6 月 17 日">少しだけ</a></li>

<li><a href="http://mizoochi.com/archives/223.html" rel="bookmark" title="2008 年 8 月 18 日">jQuery版画像プロテクションプラグイン をリリース！！</a></li>

<li><a href="http://mizoochi.com/archives/791.html" rel="bookmark" title="2010 年 1 月 15 日">windows vistaでPHP開発環境の構築</a></li>

<li><a href="http://mizoochi.com/archives/269.html" rel="bookmark" title="2008 年 12 月 27 日">はてなブログのデータを移行しました。</a></li>
</ul><!-- Similar Posts took 3.474 ms -->]]></content:encoded>
			<wfw:commentRss>http://mizoochi.com/archives/9.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://mizoochi.com/archives/9.html" />
	</item>
	</channel>
</rss>

