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

<channel>
	<title>PHPpress</title>
	<atom:link href="http://phpress.enjoy-life-style.com/feed" rel="self" type="application/rss+xml" />
	<link>http://phpress.enjoy-life-style.com</link>
	<description>Wordpress(MU)とかPHP(+MySQL)とかのメモ書き</description>
	<pubDate>Sat, 15 Nov 2008 08:29:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>ja</language>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/feed" />
		<item>
		<title>wordpressでシングルクォーテーションの注意</title>
		<link>http://phpress.enjoy-life-style.com/archives/78</link>
		<comments>http://phpress.enjoy-life-style.com/archives/78#comments</comments>
		<pubDate>Sat, 15 Nov 2008 08:27:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[wordpress (MU)]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=78</guid>
		<description><![CDATA[例えば、相互リンクページなどにリンクソースを貼る場合ですが、
&#60;a href=&#8221;http://enjoy-life-style.com/&#8221; title=&#8221;異業種交流会の情報サイト [...]]]></description>
			<content:encoded><![CDATA[<p>例えば、相互リンクページなどにリンクソースを貼る場合ですが、</p>
<p>&lt;a href=&#8221;http://enjoy-life-style.com/&#8221; title=&#8221;異業種交流会の情報サイト&#8221;&gt;異業種交流会情報＠東京近郊&lt;/a&gt;</p>
<p>と貼る場合ですが、注意すべき点は</p>
<p>&lt;</p>
<p>&gt;</p>
<p>&#8221;</p>
<p> </p>
<p>です。このうち最初の２つは、wordpressが自動で変換してくれますが、クォーテーションはなぜか全角に変換されますので自分で、ＨＴＭＬモードにして記述しましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/78/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/78" />
	</item>
		<item>
		<title>CSSでホームページをいちから作る</title>
		<link>http://phpress.enjoy-life-style.com/archives/77</link>
		<comments>http://phpress.enjoy-life-style.com/archives/77#comments</comments>
		<pubDate>Wed, 12 Nov 2008 06:11:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[日常のあれやこれや]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=77</guid>
		<description><![CDATA[いまさらながらだが、ＣＳＳでホームページを1から作るときの参考になるページを見つけたので、メモしておく。
http://www.geocities.jp/multi_column/practice/2column1.ht [...]]]></description>
			<content:encoded><![CDATA[<p>いまさらながらだが、ＣＳＳでホームページを1から作るときの参考になるページを見つけたので、メモしておく。</p>
<p><a href="http://www.geocities.jp/multi_column/practice/2column1.html#fixed">http://www.geocities.jp/multi_column/practice/2column1.html#fixed</a></p>
<p>実際は既成のページを改造することが多いのだが、1から作るには良いと思った。</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/77/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/77" />
	</item>
		<item>
		<title>Linuxでディレクトリごとzipファイルに圧縮する</title>
		<link>http://phpress.enjoy-life-style.com/archives/76</link>
		<comments>http://phpress.enjoy-life-style.com/archives/76#comments</comments>
		<pubDate>Sat, 08 Nov 2008 04:45:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=76</guid>
		<description><![CDATA[WEBサイトなどでバックアップを取るとき、Windowsなどのためにzip形式で圧縮したい場合。
今回は、htdocs以下をzip化する。
まずはhtdocsの上のディレクトリに移動してから、
zip -r backup [...]]]></description>
			<content:encoded><![CDATA[<p>WEBサイトなどでバックアップを取るとき、Windowsなどのためにzip形式で圧縮したい場合。</p>
<p>今回は、htdocs以下をzip化する。</p>
<p>まずはhtdocsの上のディレクトリに移動してから、</p>
<p>zip -r backup.zip ./htdocs/</p>
<p>でＯＫ</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/76/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/76" />
	</item>
		<item>
		<title>会社の本店移転手続き</title>
		<link>http://phpress.enjoy-life-style.com/archives/75</link>
		<comments>http://phpress.enjoy-life-style.com/archives/75#comments</comments>
		<pubDate>Wed, 22 Oct 2008 23:20:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[日常のあれやこれや]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=75</guid>
		<description><![CDATA[会社の本店移転手続きが完了しました。
参考にしたのはこちらのサイト。ありがとうございます。
うさぎ文学日記さん
一部、実際にやってみると違うとこがありましたのでメモ。
条件：法人本店移転（北区→品川区）　と　代表の住所変 [...]]]></description>
			<content:encoded><![CDATA[<p>会社の本店移転手続きが完了しました。</p>
<p>参考にしたのはこちらのサイト。ありがとうございます。</p>
<p><a href="http://d.hatena.ne.jp/sen-u/20080331/p1" target="_blank">うさぎ文学日記さん</a></p>
<p>一部、実際にやってみると違うとこがありましたのでメモ。</p>
<p>条件：法人本店移転（北区→品川区）　と　代表の住所変更</p>
<p><strong>★法務局編</strong></p>
<p>まずは、法務局に向かいます。</p>
<p>シーズンによると思いますが、うさぎ文学日記さんの言うとおり、法務局であれこれ丁寧に教えてくれます。</p>
<p>（用紙もくれますし、記入例もくれます。）</p>
<p>とにかくどこでもいいので一度法務局に行って教えてもらうことが近道です。</p>
<p>各種書類を作成したら、実際の登記申請は、<span style="text-decoration: underline;">転出もとの法務局</span>に提出します。</p>
<p>印紙代は6万（本店移転）＋1万（代表移転）</p>
<p>1点だけ注意点。時間の並べ方ですが、株主総会→取締役会議事録→移転日となるようにしましょう。</p>
<p>1週間程度で完了しますので、今度は転入先の法務局に電話で確認します。</p>
<p>（問題があれば、連絡してきてくれますので、連絡がなければ多分ＯＫ）</p>
<p>これで移転登記自体は完了です。</p>
<p>いろいろ必要なので、登記簿謄本を2部程度申請してコピーもしておきましょう。</p>
<p> </p>
<p><strong>★税務署および都税事務所</strong></p>
<p>用紙はインターネットでも入手できますが、これも出向いて入手したほうが（複写とかいろいろあって）便利です。</p>
<ul>
<li>転入先の都税事務所（転出元でもいい）</li>
<li>転入先の税務署</li>
<li>転出元の税務署</li>
</ul>
<p>に行かなければなりません。</p>
<p>まずは転入先都税事務所に行きました。</p>
<p>たいがい暇そうなので（すみません。。）、丁寧に記入方法を教えてくれます。</p>
<p>ここで、用紙と登記簿のコピーを提出。</p>
<p>税務署には転入先と転出元に行ったわけですが、どちらも先ほどの複写された用紙と登記簿のコピー（必要でした。）を提出して完了です。</p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong>★特別徴収（住民税）をしている場合</strong></p>
<p>住民税の特別徴収をしている場合は、代表が移転しますので転出もとの区役所で手続きしてください。</p>
<p>特別徴収していなければ不要です。</p>
<p> </p>
<p>以上</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/75/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/75" />
	</item>
		<item>
		<title>PHPで携帯電話のキャリアを判別する方法</title>
		<link>http://phpress.enjoy-life-style.com/archives/74</link>
		<comments>http://phpress.enjoy-life-style.com/archives/74#comments</comments>
		<pubDate>Tue, 14 Oct 2008 23:21:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[wordpress (MU)]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=74</guid>
		<description><![CDATA[ユーザエージェントから携帯キャリアを判別します。
$agent = $_SERVER['HTTP_USER_AGENT'];
if(ereg(&#8221;^DoCoMo&#8221;, $agent)){

}else if(ereg(&#8221;^J-PHONE&#124;^Vodafone&#124;^SoftBank&#8221;, $agent)){

}else if(ereg(&#8221;^UP.Browser&#124;^KDDI&#8221;, $agent)){

}
以上
]]></description>
			<content:encoded><![CDATA[<pre>ユーザエージェントから携帯キャリアを判別します。</pre>
<pre>$agent = $_SERVER['HTTP_USER_AGENT'];
if(ereg(&#8221;^DoCoMo&#8221;, $agent)){

}else if(ereg(&#8221;^J-PHONE|^Vodafone|^SoftBank&#8221;, $agent)){

}else if(ereg(&#8221;^UP.Browser|^KDDI&#8221;, $agent)){

}</pre>
<pre>以上</pre>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/74/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/74" />
	</item>
		<item>
		<title>.htaccessを使ってmod_rewriteでphpファイルを静的にする</title>
		<link>http://phpress.enjoy-life-style.com/archives/73</link>
		<comments>http://phpress.enjoy-life-style.com/archives/73#comments</comments>
		<pubDate>Sat, 04 Oct 2008 14:56:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=73</guid>
		<description><![CDATA[PHPファイルを静的に見せる方法。
今回は、apacheのmod_rewriteモジュールを.htaccessを動かす。
以下mod_rewriteの設定は完了しているものとします。
.htaccessファイルの記述例
 [...]]]></description>
			<content:encoded><![CDATA[<p>PHPファイルを静的に見せる方法。</p>
<p>今回は、apacheのmod_rewriteモジュールを.htaccessを動かす。</p>
<p>以下mod_rewriteの設定は完了しているものとします。</p>
<p>.htaccessファイルの記述例</p>
<p>RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^([0-9a-zA-Z_\-]+)\.html$ $1\.php [L]</p>
<p>これで例えばtop.htmlと入力したときに、top.phpを処理できます。</p>
<p>ちなみに、2行目3行目は、実在するファイル、ディレクトリの場合には書き換えしませんということ。</p>
<p> </p>
<p>また、動的なファイルを静的にする例。最後の行を次のように変更します。</p>
<p>RewriteRule ^<strong>([0-9A-Za-z]+)</strong>/<strong>([0-9A-Za-z)]+)</strong>\.html$ file.php?var1<strong>=$1</strong>&amp;var2<strong>=$2</strong> [L]</p>
<p>これで、例えば dir/say.html のアクセスがあった場合に、file.php?var1=dir&amp;var2=say</p>
<p>の結果を返します。</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/73/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/73" />
	</item>
		<item>
		<title>PHPでランダムな英数字で文字列を作る</title>
		<link>http://phpress.enjoy-life-style.com/archives/72</link>
		<comments>http://phpress.enjoy-life-style.com/archives/72#comments</comments>
		<pubDate>Sat, 27 Sep 2008 08:25:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=72</guid>
		<description><![CDATA[PHPでランダムな英数字で文字列を作る場合は・・
てくめも＠coop さんより
&#60;?php
/**
 * ランダムな文字列を生成する。
 * @param int $nLengthRequired 必要な文字列長。 [...]]]></description>
			<content:encoded><![CDATA[<p>PHPでランダムな英数字で文字列を作る場合は・・</p>
<p><a href="http://www.ecoop.net/memo/2005-05-31-1.html" target="_blank">てくめも＠coop</a> さんより</p>
<p>&lt;?php<br />
/**<br />
 * ランダムな文字列を生成する。<br />
 * @param int $nLengthRequired 必要な文字列長。省略すると 8 文字<br />
 * @return String ランダムな文字列<br />
 */<br />
function getRandomString($nLengthRequired = 8){<br />
    $sCharList = &#8220;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_&#8221;;<br />
    mt_srand();<br />
    $sRes = &#8220;&#8221;;<br />
    for($i = 0; $i &lt; $nLengthRequired; $i++)<br />
        $sRes .= $sCharList{mt_rand(0, strlen($sCharList) - 1)};<br />
    return $sRes;<br />
}<br />
// 使ってみる<br />
echo getRandomString() . &#8220;\n&#8221;;<br />
?&gt;</p>
<p>毎回、考えていたのでこうやってまとめてもらえると助かります。ありがとうございます。</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/72/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/72" />
	</item>
		<item>
		<title>ＳＭＴＰ(25番ポート)でメール送信できない場合のPostfix設定(Submission)</title>
		<link>http://phpress.enjoy-life-style.com/archives/71</link>
		<comments>http://phpress.enjoy-life-style.com/archives/71#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:29:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=71</guid>
		<description><![CDATA[最近のＩＳＰは25番ポートでメール送信ができなくなってきました。
もちろんこれはスパム対策なのですが、自前のメールサーバを利用している人には対策が必要です。
以下にPostfixでのいわゆるサブミッション(Submiss [...]]]></description>
			<content:encoded><![CDATA[<p>最近のＩＳＰは25番ポートでメール送信ができなくなってきました。</p>
<p>もちろんこれはスパム対策なのですが、自前のメールサーバを利用している人には対策が必要です。</p>
<p>以下にPostfixでのいわゆるサブミッション(Submisssion)ポート587の設定方法を記述します。</p>
<p>＃ＳＭＴＰ－ＡＵＴＨに関する設定が終わっていることを前提とします。</p>
<p>1.　まずはPostfixの設定ファイル</p>
<p>　　/etc/postfix/master.cfの次の行をコメントアウトします。</p>
<p>　　<strong>submission inet n      -       -       -       -       smtpd       </strong></p>
<p><strong></strong>　　この行に続く、-o 云々の必要なオプションもコメントアウトしてください。ＳＭＴＰ－ＡＵＴＨ関係、ＴＬＳ関係</p>
<p>　例）-o smtpd_sasl_auth_enable=yes<br />
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject</p>
<p>　　これでPostfixでSubmissionポートが使えるようになります。</p>
<p>2.　ファイアウォールで587ポートの確認</p>
<p>　　ファイアウォールやiptablesなどでsubmissionを開放していない場合は開放しましょう。</p>
<p>3.最後にメーラの設定を忘れずに</p>
<p>　ＯｕｔｌｏｏｋなどのメーラのＳＭＴＰのポートを587に設定します。</p>
<p>　念のため、ＳＭＴＰ－ＡＵＴＨもしっかり働いているかチェックしましょう！</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/71/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/71" />
	</item>
		<item>
		<title>IEのHTTPだけがつながらない（２ｃｈ壷編）</title>
		<link>http://phpress.enjoy-life-style.com/archives/70</link>
		<comments>http://phpress.enjoy-life-style.com/archives/70#comments</comments>
		<pubDate>Sat, 20 Sep 2008 16:28:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Windows系]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=70</guid>
		<description><![CDATA[最近ずーっとＩＥのＨＴＴＰがつながらなかった。ＨＴＴＰＳはつながる。
原因がずーっ都不明でＦｉｒｅＦｏｘ使ってましたが、どうやら２ｃｈの禁断の壷が原因でした。
解消法は、
1.ＩＥでツール、インターネットオプション、接続 [...]]]></description>
			<content:encoded><![CDATA[<p>最近ずーっとＩＥのＨＴＴＰがつながらなかった。ＨＴＴＰＳはつながる。</p>
<p>原因がずーっ都不明でＦｉｒｅＦｏｘ使ってましたが、どうやら２ｃｈの禁断の壷が原因でした。</p>
<p>解消法は、</p>
<p>1.ＩＥでツール、インターネットオプション、接続、ＬＡＮの設定</p>
<p>2.プロキシサーバのチェックをはずす</p>
<p>です。</p>
<p>しかも、２ｃｈの壷使っても過去ログ見れへんし。</p>
<p>金返せよ！！って久々にむかつきました。</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/70/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/70" />
	</item>
		<item>
		<title>Wordpress 2.6 で　PHPを使えるプラグイン、Exec-PHPを試す</title>
		<link>http://phpress.enjoy-life-style.com/archives/69</link>
		<comments>http://phpress.enjoy-life-style.com/archives/69#comments</comments>
		<pubDate>Thu, 18 Sep 2008 15:51:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[wordpress (MU)]]></category>

		<guid isPermaLink="false">http://phpress.enjoy-life-style.com/?p=69</guid>
		<description><![CDATA[以前の記事でWordpress MU 2.6 にExec-PHPを使用して失敗したと書きました。
さて、今回はＭＵではない、通常のWordpress 2.6にExec-PHPのプラグインを試してみました。
方法は以下のと [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://phpress.enjoy-life-style.com/archives/58">以前の記事でWordpress MU 2.6 にExec-PHPを使用</a>して失敗したと書きました。</p>
<p>さて、今回はＭＵではない、通常のWordpress 2.6にExec-PHPのプラグインを試してみました。</p>
<p>方法は以下のとおり。</p>
<p>1.　<a href="http://bluesome.net/post/2005/08/18/50/" target="_blank">このページ</a>　よりプラグインをダウンロード</p>
<p>2.　フォルダごと、pluginsフォルダ内にアップロード</p>
<p>3.　管理画面の「プラグイン」からExec-PHPを有効にする</p>
<p>4.　ビジュアルエディタではエラーが起こるので、「ユーザ」→該当ユーザをクリック→「ビジュアルエディタを・・・」のチェックをはずしておく。</p>
<p>上記の設定で、無事投稿内でＰＨＰが使えるようになりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://phpress.enjoy-life-style.com/archives/69/feed</wfw:commentRss>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://phpress.enjoy-life-style.com/archives/69" />
	</item>
	</channel>
</rss>
