<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>web-su.net WEBメモ</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/" />
    <link rel="self" type="application/atom+xml" href="http://web-su.net/atom.xml" />
    <id>tag:web-su.net,2008-02-12://1</id>
    <updated>2008-09-29T12:49:06Z</updated>
    <subtitle>PHP初心者が陥りがちなミスや分からない部分を
メモする備忘録。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.1</generator>

<entry>
    <title>LINUXコマンド　date　（日付や時刻の設定方法）</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/09/linuxdate.html" />
    <id>tag:web-su.net,2008://1.53</id>

    <published>2008-09-29T12:42:18Z</published>
    <updated>2008-09-29T12:49:06Z</updated>

    <summary>日時の設定方法はdateコマンドを使って設定する。-s オプションを付けると設定...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="LINUX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="linux" label="linux" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="コマンド" label="コマンド" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="日時設定" label="日時設定" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[<pre>日時の設定方法はdateコマンドを使って設定する。<br /><br />-s オプションを付けると設定になり<br />何も付けないとシステム設定日時を閲覧できる。<br /><br /><span class="lincom_h">日付と時刻を2008年10月8日11時10分にセットする</span><br /># date -s "10/08 11:10 2008"</pre> ]]>
        
    </content>
</entry>

<entry>
    <title>phpでformのリストを作る際selectedを付ける時の小技</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/09/phpformselected.html" />
    <id>tag:web-su.net,2008://1.52</id>

    <published>2008-09-16T06:46:02Z</published>
    <updated>2008-09-16T06:57:53Z</updated>

    <summary>DBからリスト項目を取ってくる場合は繰り返し作っていけば良いがHTMLのみの場合...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="form" label="form" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="option" label="option" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="selected" label="selected" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[DBからリスト項目を取ってくる場合は<br />繰り返し作っていけば良いが<br />HTMLのみの場合　selected　を付けるのに、いちいち<br /><br /><blockquote>&lt;option &lt;?php if($_POST['Year'] == "2008"){echo "selected";} ?&gt; value="2008" &gt;2008&lt;/option&gt;<br />&lt;option &lt;?php if($_POST['Year'] == "2009"){echo "selected";} ?&gt; value="2009" &gt;2009&lt;/option&gt;<br /></blockquote>とやっていたのだが、これでは項目が多くなるとめんどくさいので<br /><br /><blockquote>&lt;option value="&lt;?=$_POST['Year']?&gt;" &gt;&lt;?=$_POST['Year']?&gt;&lt;/option&gt;<br />&lt;option value="2008" &gt;2008&lt;/option&gt;<br />&lt;option value="2009" &gt;2009&lt;/option&gt;<br /></blockquote><br />optionタグの一番上にPOST値をvalueにしたoptionタグを付けることで<br />エラーによる再入力の時などに<br />すでに先ほど選んだ値が選択された状態になる。]]>
        
    </content>
</entry>

<entry>
    <title>firefoxでimg src が空（空白）の時、二回URLを読みに行く</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/09/firefoximg-src-url.html" />
    <id>tag:web-su.net,2008://1.51</id>

    <published>2008-09-13T17:08:29Z</published>
    <updated>2008-09-13T17:19:54Z</updated>

    <summary>Firefoxではまったのでメモ。Sessionの特定の要素を削除するためuns...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="firefox" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="2回" label="2回" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="firefox" label="firefox" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="複数" label="複数" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[Firefoxではまったのでメモ。<br /><br />Sessionの特定の要素を削除するため<br /><br />unset()を使ったのだが<br /><br />なぜかFirefoxだけ二つの値が削除される。<br /><br />プログラムの実行が二回されているようだ。<br /><br />プログラムの先頭と一番後ろに<br /><br />print_r($_SESSION)；<br /><br />としてもunset()は一回しか実行されていないのでなぜかと調べたら。<br /><br />imgタグのsrc属性が空白だとfirefoxではそのURLを二回読みにいくようだ。<br /><br />&lt;img src="" &gt;<br /><br />こんな感じになっていた。<br /><br />ここに適当な文字をいれたら複数削除されなくなった。<br /><br />削除や登録などの実行プログラムでたまにあるミスのようだ。<br /><br />バージョンはFirefox3だったが2でも同じ模様。]]>
        
    </content>
</entry>

<entry>
    <title>PHP　PEAR　Auth　のコンストラクタ</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/07/phppearauth.html" />
    <id>tag:web-su.net,2008://1.50</id>

    <published>2008-07-31T07:59:55Z</published>
    <updated>2008-07-31T08:22:30Z</updated>

    <summary>参照サイト：http://www.bnote.net/php/pear/ref_...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php　pear" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="auth" label="auth" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="pear" label="pear" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[参照サイト：http://www.bnote.net/php/pear/ref_auth.shtml<br /><br />PHPのPEAR　Auth　のコンストラクタ<br /><br />認証された際のusernameを取得したくて調べてたら、これを見つけた。<br />最初は<br />$username = $authobj-&gt;username;<br />としていたがこれではもう一度読み込んだときに$usernameの値がからになっていた。<br /><br />$username = $authobj-&gt;getUsername()<br />これで取得できた。<br /><br /><table summary="Authのメンバ関数 認証" class="member_group"><tbody><tr><td class="member">Auth::start()</td>
		<td>認証の開始及び認証フォーム出力</td>
	</tr>
	<tr>
		<td class="member">Auth::logout()</td>
		<td>ログアウトします。</td>
	</tr>
	<tr>
		<td class="member">Auth::setExpire()</td>
		<td>認証の有効期限を設定</td>
	</tr>
	<tr>
		<td class="member">Auth::setIdle()</td>
		<td>最大アイドル時間の設定</td>
	</tr>
	<tr>
		<td class="member">Auth::setSessionname()</td>
		<td>カスタムセッション名の設定</td>
	</tr>
	<tr>
		<td class="member">Auth::setShowLogin()</td>
		<td>ログインページを表示するかどうかを指定します。</td>
	</tr>
	</tbody>
	</table>
	<h2 class="group_name">認証状態の取得</h2>
	<table summary="Authのメンバ関数 認証状態の取得" class="member_group">
	<tbody>
	<tr>
		<td class="member">Auth::getAuth()</td>
		<td>ユーザが認証済みかどうか調べます。</td>
	</tr>
	<tr>
		<td class="member">Auth::getStatus()</td>
		<td>現在の認証状況についての情報を返す。</td>
	</tr>
	</tbody>
	</table>

	<h2 class="group_name">コールバック</h2>
	<table summary="Authのメンバ関数 コールバック" class="member_group">
	<tbody>
	<tr>
		<td class="member">Auth::setLoginCallback()</td>
		<td>ログイン時のコールバック関数を登録します。</td>
	</tr>
	<tr>
		<td class="member">Auth::setFailedLoginCallback()</td>
		<td>ログインエラー時のコールバック関数を登録します。</td>
	</tr>
	<tr>
		<td class="member">Auth::setLogoutCallback()</td>
		<td>ログアウト時のコールバック関数を登録します。</td>
	</tr>
	</tbody>
	</table>
	<h2 class="group_name">その他のデータ</h2>
	<table summary="Authのメンバ関数 コールバック" class="member_group">
	<tbody>
	<tr>
		<td class="member">Auth::setAuthData()</td>
		<td>認証ユーザーの補助情報を追加します。</td>
	</tr>
	<tr>
		<td class="member">Auth::getAuthData()</td>
		<td>認証ユーザーの補助情報を取得します。</td>
	</tr>
	<tr>
		<td class="member">Auth::setAuth()</td>
		<td>認証ユーザー名を設定します。ただし、session_start()は、行いません。</td>
	</tr>
	<tr>
		<td class="member">Auth::getUsername()</td>
		<td>現在の認証セッションのユーザー名を取得</td>
	</tr>
	<tr>
		<td class="member">Auth::sessionValidThru()</td>
		<td>セッションの有効期限を取得</td>
	</tr>
	</tbody>
	</table>

	<h2 class="group_name">ユーザー管理</h2>
	
	
	<table summary="Authのメンバ関数 ユーザー管理" class="member_group"><tbody><tr>
		<td class="member">Auth::listUsers()</td>
		<td>ユーザー及び付属情報の一覧を取得します。</td>
	</tr>
	<tr>
		<td class="member">Auth::addUser()</td>
		<td>ユーザーを追加</td>
	</tr>
	<tr>
		<td class="member">Auth::removeUser()</td>
		<td>ユーザーの削除</td></tr></tbody></table><br />]]>
        
    </content>
</entry>

<entry>
    <title>includeファイルにアクセスされたくない時の.htaccess</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/07/includehtaccess.html" />
    <id>tag:web-su.net,2008://1.49</id>

    <published>2008-07-21T05:44:41Z</published>
    <updated>2008-07-21T05:50:12Z</updated>

    <summary>includeファイルに直接アクセスされたくない時にそのフォルダの特定の拡張子へ...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="htaccess" label=".htaccess" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="include" label="include" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="アクセスされたくない" label="アクセスされたくない" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="禁止" label="禁止" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[includeファイルに直接アクセスされたくない時に<br />そのフォルダの特定の拡張子へのアクセスを禁止する.htaccess<br /><font style="font-size: 1em;"><br /></font><blockquote><font style="font-size: 1em;">&lt;Files ~ "\.(php|inc)"&gt;</font><br /><font style="font-size: 1em;">&nbsp;&nbsp;&nbsp; Order allow,deny</font><br /><font style="font-size: 1em;">&nbsp;&nbsp;&nbsp; Deny from all</font><br /><font style="font-size: 1em;">&nbsp;&lt;/Files&gt;</font><br /><br />この例の場合、.php と.inc　ファイルへのアクセスを禁止している。<br /></blockquote>またはインクルードするファイルの先頭に以下をたす方法もある。<br /><br />//外部からのアクセス拒否<br />if(stristr($_SERVER['PHP_SELF'],basename(__FILE__))){<br />die("直接アクセスのため処理終了");<br />}<br /><blockquote></blockquote> ]]>
        
    </content>
</entry>

<entry>
    <title>簡単なミス。ファイルのフルパスとファイル名の定数は_FILE_ じゃなくて__FILE__である。</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/07/-file----file.html" />
    <id>tag:web-su.net,2008://1.48</id>

    <published>2008-07-21T05:38:50Z</published>
    <updated>2008-07-21T05:43:06Z</updated>

    <summary>phpの定数_FILE_を記入してもファイルのフルパスとファイル名が反映されない...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="__file__" label="__FILE__" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="定数" label="定数" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[phpの定数_FILE_を記入してもファイルのフルパスとファイル名が反映されないと悩んでいたら<br />_FILE_　じゃなくて__FILE__　だった。<br />見えにくいがアンダーバーは二つ続きである。繋がって一つに見えていた。<br />単純なミスだ。いかんす。<br />]]>
        
    </content>
</entry>

<entry>
    <title>phpで画像を表示させたい場合にはmb_http_output(&quot;pass&quot;) を忘れない</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/07/phpmb-http-outputpass.html" />
    <id>tag:web-su.net,2008://1.47</id>

    <published>2008-07-12T04:26:44Z</published>
    <updated>2008-07-12T04:32:23Z</updated>

    <summary>phpにおいて画像を直接ブラウザに表示させたい場合はmb_http_output...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mb_http_output" label="mb_http_output" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="pass" label="pass" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="画像" label="画像" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[<p>phpにおいて画像を直接ブラウザに表示させたい場合は<br /></p><p>mb_http_output("pass")をつけることによって</p><p>ブラウザが画像であると認識してブラウザに画像として表示される。<br /></p><br /><p>また<br /></p><p>
・ Content-Type の値<br />
・ inline の指定<br />
・ Content-Length <br /></p><p>の値を設定したほうがよりブラウザが画像と認識して間違ってコード変換される事がなくなる。</p><br /><p><br /></p><p>例）<br /> </p>

<blockquote>
mb_http_output("pass");<br />
header("Content-type: image/jpeg");<br />
header("Content-Disposition: inline; filename=image.jpg");<br />
header("Content-length: " . filesize("/tmp/image.jpg"));<br />
readfile("/tmp/image.jpg");</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>ホワイトボードっぽいペタペタと画像や絵や文字を貼り付けるサイト</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/06/post-2.html" />
    <id>tag:web-su.net,2008://1.46</id>

    <published>2008-06-28T10:39:55Z</published>
    <updated>2008-06-28T10:44:14Z</updated>

    <summary>ホワイトボード感覚でペタペタと画像や絵や文字を貼り付けることのできるサイト&quot;もぞ...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="運営サイト" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="wiki" label="wiki" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="しりとり" label="しりとり" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="もぞうし" label="もぞうし" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ホワイトボード" label="ホワイトボード" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="大喜利" label="大喜利" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[ホワイトボード感覚で<br /><a href="http://mozoushi.com/">ペタペタと画像や絵や文字を貼り付けることのできるサイト</a><br />"もぞうし"をオープンさせました。<br /><br />２ちゃんっぽい雰囲気にしています。<br /><br />まとめページをつくったり<br />WIKIっぽい使い方をしたり<br />大喜利なんかもできます。<br /><br />あと画像しりとりとかにもつかえる。<br /><br /><a href="http://mozoushi.com/">http://mozoushi.com/</a><br /><br /> ]]>
        
    </content>
</entry>

<entry>
    <title>無料予約システム　宿泊施設用　（備忘ブックマーク）</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/06/post-1.html" />
    <id>tag:web-su.net,2008://1.45</id>

    <published>2008-06-09T09:07:58Z</published>
    <updated>2008-06-09T09:11:56Z</updated>

    <summary>無料のASP型予約システムサイト宿泊施設用で民宿や旅館に対応している模様。 ...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="ブックマーク" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="asp" label="asp" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="サーバー不要" label="サーバー不要" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="予約システム" label="予約システム" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="無料" label="無料" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[<a href="http://yo89.net/">無料のASP型予約システムサイト</a><br />宿泊施設用で民宿や旅館に対応している模様。<br /><br /> ]]>
        
    </content>
</entry>

<entry>
    <title>echo まとまった量を記載する時に便利な、別のやり方。</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/05/echo.html" />
    <id>tag:web-su.net,2008://1.44</id>

    <published>2008-05-24T05:52:37Z</published>
    <updated>2008-05-24T05:58:23Z</updated>

    <summary><![CDATA[echo &lt;&lt;&lt;ENDここにechoで表示させたいものを記載す...]]></summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="echo" label="echo" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[<code><font color="#000000"><font color="#007700">echo &lt;&lt;&lt;END<br /></font><font color="#0000bb">ここにechoで表示させたいものを記載する<br />何行でも可能<br />量が多いときに便利<br /></font><font color="#007700">END;</font><br /><br />&lt;&lt;&lt;END　から　END;までを表示する　<br /></font></code> ]]>
        
    </content>
</entry>

<entry>
    <title>Open PNE パッチファイルの当て方。</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/05/open-pne-1.html" />
    <id>tag:web-su.net,2008://1.43</id>

    <published>2008-05-19T07:53:10Z</published>
    <updated>2008-05-19T07:55:52Z</updated>

    <summary>openpenをインストールしたディレクトリに行くwgetでパッチをダウンロード...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="OpenPNE" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[openpenをインストールしたディレクトリに行く<br /><br />wgetでパッチをダウンロード<br /><br />patch -p0 &lt; ./OpenPNE_2_＊.＊.patch　（パッチのバージョンに置き換えてください）<br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>mysqlでフィールドの最大数値を求める方法</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/04/mysql.html" />
    <id>tag:web-su.net,2008://1.42</id>

    <published>2008-04-24T10:37:29Z</published>
    <updated>2008-04-24T10:40:14Z</updated>

    <summary>MAX関数を使って最大値を取得します。以下が例です。SELECT MAX(フィー...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mysql" label="mysql" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="最大数値" label="最大数値" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[MAX関数を使って最大値を取得します。<br /><br />以下が例です。<br /><br /><font size="+1">SELECT MAX(フィールド名) FROM テーブル名;<br /><br /><br /></font>]]>
        
    </content>
</entry>

<entry>
    <title>mysql SELECTで範囲（～から～）を指定したい場合</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/04/mysql-select-1.html" />
    <id>tag:web-su.net,2008://1.41</id>

    <published>2008-04-15T09:08:14Z</published>
    <updated>2008-04-15T09:10:23Z</updated>

    <summary>WHERE　に複数の条件をANDでつなげて記載する。$sql  = &apos;SELEC...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mysql" label="mysql" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="select" label="SELECT" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="where" label="WHERE" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[WHERE　に複数の条件をANDでつなげて記載する。<br />$sql  = 'SELECT * FROM `site_list` WHERE `initial` &gt; 2 AND `initial` &lt; 10'; ]]>
        
    </content>
</entry>

<entry>
    <title>atomの記事URLをsimplexml_load_stringで取得する</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/04/atomurlsimplexml-load-string.html" />
    <id>tag:web-su.net,2008://1.39</id>

    <published>2008-04-14T14:03:44Z</published>
    <updated>2008-04-14T14:10:41Z</updated>

    <summary>atomのxmlの記事パーマリンク部分が通常のやりかたでは取得できなかったのでメ...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="php" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="atom" label="atom" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="simplexml_load_string" label="simplexml_load_string" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xml" label="xml" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[<pre id="line1">atomのxmlの記事パーマリンク部分が通常のやりかたでは取得できなかったのでメモ。<br />&lt;link rel="alternate" type="text/html" href="http://hoge.com/hoge0202.html" /&gt;<br />とかになっているのでlinkだけじゃなく['href']も指定する。<br /></pre><br /><font style="font-size: 1.25em;">$filecontents = file_get_contents(atom_url]);<br />$xml = simplexml_load_string($filecontents);<br />$entry_url = $xml-&gt;entry[$loop]-&gt;link['href'];</font><br />]]>
        
    </content>
</entry>

<entry>
    <title>OpenPNE携帯メール投稿が出来る様にする設定</title>
    <link rel="alternate" type="text/html" href="http://web-su.net/2008/04/openpne-2.html" />
    <id>tag:web-su.net,2008://1.34</id>

    <published>2008-04-07T03:45:50Z</published>
    <updated>2008-04-13T14:33:03Z</updated>

    <summary>メールをmail.phpにわたす時の書式aliasesに設定。/var/www/...</summary>
    <author>
        <name>web-su</name>
        
    </author>
    
        <category term="OpenPNE" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="openpne" label="OpenPNE" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="投稿" label="投稿" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="携帯" label="携帯" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://web-su.net/">
        <![CDATA[メールをmail.phpにわたす時の書式<br />aliasesに設定。<br /><br />/var/www/OpenPNE/　の部分は各自の環境に変更。<br />バージョンはOpenPNE2.10<br />postfix使用<br /><br />/^get(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php"<br />/^p[0-9]+-[0-9a-z]{12}(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php"<br />/^t[0-9]+-[0-9a-z]{12}(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php"<br />/^b[0-9]+-[0-9a-z]{12}(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php"<br />/^bi[0-9]+-[0-9a-z]{12}(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php"<br />/^ci[0-9]+-[0-9a-z]{12}(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php"<br />/^ti[0-9]+-[0-9a-z]{12}(@.*)?$/ "|/usr/bin/php /var/www/OpenPNE/bin/mail.php" ]]>
        
    </content>
</entry>

</feed>
