<?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>ホームページ制作のディークラフト</title>
	<atom:link href="http://d-craft.net/feed" rel="self" type="application/rss+xml" />
	<link>http://d-craft.net</link>
	<description>ホームページの制作、運営管理、PHPスクリプトの販売</description>
	<lastBuildDate>Tue, 08 May 2012 05:35:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</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://d-craft.net/feed" />
		<item>
		<title>JavaScriptと外部PHPの通信テスト</title>
		<link>http://d-craft.net/php-sample/1078.html</link>
		<comments>http://d-craft.net/php-sample/1078.html#comments</comments>
		<pubDate>Tue, 08 May 2012 05:35:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1078</guid>
		<description><![CDATA[ドメインが違うサーバー同士で、データのやり取りを行うサンプル。
サーバーAに
index.html
test.js
サーバーBに
test.php
JSON.php
をそれぞれ設置。
サーバーAの「index.html」 [...]]]></description>
			<content:encoded><![CDATA[<p>ドメインが違うサーバー同士で、データのやり取りを行うサンプル。<br />
サーバーAに<br />
index.html<br />
test.js</p>
<p>サーバーBに<br />
test.php<br />
JSON.php</p>
<p>をそれぞれ設置。</p>
<p>サーバーAの「index.html」でリンクをクリックすると、リンクに埋め込まれたパラメータを読み込み、サーバーBで返す値を選ぶ。</p>
<p>サーバーAのindex.html</p>
<pre class="brush: php;">
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&lt;html lang=&quot;ja&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
&lt;title&gt;JavaScriptと外部PHPの通信テスト&lt;/title&gt;
&lt;script src=&quot;test.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;JavaScriptと外部PHPの通信テスト&lt;/h1&gt;
&lt;h2&gt;クリックして取得した値によって、サーバー側でレスポンスを変える。&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;javascript:void(0)&quot; onClick=&quot;req(001)&quot;&gt;カテゴリ1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;javascript:void(0)&quot; onClick=&quot;req(002)&quot;&gt;カテゴリ2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;javascript:void(0)&quot; onClick=&quot;req(003)&quot;&gt;カテゴリ3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div id=&quot;out_html&quot;&gt;ここに表示&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>サーバーAのtest.js</p>
<pre class="brush: php;">
function req(code){

  var apireq = 'http://サーバーBのアドレス/test.php?code='+ code +'&amp;callback=dataGet';
  var script  = document.createElement( 'script' );
  script.type = 'text/javascript';
  script.charset = 'UTF-8';
  script.src  = apireq;
  document.body.appendChild( script );
}

// コールバック関数
function dataGet( data ) {
var articleid = data.articleid;
var name = data.name;

out_html = '&lt;p&gt;' + articleid + '：' + name + '&lt;/p&gt;';
document.getElementById('out_html').innerHTML = out_html;
}
</pre>
<p>サーバーBのtest.php</p>
<pre class="brush: php;">
&lt;?php
// テストAPI

// JSON
require_once(&quot;JSON.php&quot;);

// GETデータ取得
foreach($_GET as $key=&gt;$val){
	$val = htmlspecialchars($val);
	$$key = $val;
}

//print_r($_GET);

switch ($code) {
	case &quot;001&quot;:
		$articleid = &quot;00101&quot;;
		$name = &quot;商品名1&quot;;
		break;

	case &quot;002&quot;:
		$articleid = &quot;00201&quot;;
		$name = &quot;商品名2&quot;;
		break;

	case &quot;003&quot;:
		$articleid = &quot;00301&quot;;
		$name = &quot;商品名3&quot;;
		break;

	default:
		$articleid = &quot;00001&quot;;
		$name = &quot;商品名0&quot;;
}
$item = array(
	&quot;articleid&quot;=&gt;$articleid,
	&quot;name&quot;=&gt;$name
);

$json = new Services_JSON;
$encode = $json-&gt;encode($item);
echo $callback.&quot;(&quot;.$encode.&quot;);&quot;;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/php-sample/1078.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/php-sample/1078.html" />
	</item>
		<item>
		<title>改行を削除するPHPソースコード</title>
		<link>http://d-craft.net/php-sample/1076.html</link>
		<comments>http://d-craft.net/php-sample/1076.html#comments</comments>
		<pubDate>Thu, 26 Apr 2012 07:06:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1076</guid>
		<description><![CDATA[
function br_del($str) {
	$str = str_replace(array(&#34;\r\n&#34;,&#34;\r&#34;,&#34;\n&#34;), '', $str);
	return $str;
}

]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
function br_del($str) {
	$str = str_replace(array(&quot;\r\n&quot;,&quot;\r&quot;,&quot;\n&quot;), '', $str);
	return $str;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/php-sample/1076.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/php-sample/1076.html" />
	</item>
		<item>
		<title>PHP+Ajax、データベースなしで動作する高機能ファイルマネージャー</title>
		<link>http://d-craft.net/php-sample/1072.html</link>
		<comments>http://d-craft.net/php-sample/1072.html#comments</comments>
		<pubDate>Wed, 11 Apr 2012 02:34:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP関連]]></category>
		<category><![CDATA[jQuery関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1072</guid>
		<description><![CDATA[
⇒AjaxXplorer
]]></description>
			<content:encoded><![CDATA[<p><a href="http://d-craft.net/wp/wp-content/uploads/2012/04/1334111481064.jpg" rel="lightbox[pics1072]" title="1334111481064"><img src="http://d-craft.net/wp/wp-content/uploads/2012/04/1334111481064.jpg" alt="1334111481064" width="200" height="200" class="attachment wp-att-1073 alignleft" /></a><br />
<a href="http://ajaxplorer.info/" target="_blank">⇒AjaxXplorer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/php-sample/1072.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/php-sample/1072.html" />
	</item>
		<item>
		<title>スマホのサイト作成に参考になった記事</title>
		<link>http://d-craft.net/jquery-sample/1067.html</link>
		<comments>http://d-craft.net/jquery-sample/1067.html#comments</comments>
		<pubDate>Mon, 09 Apr 2012 10:11:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1067</guid>
		<description><![CDATA[
jQuery Mobileのテンプレート
jQuery Mobileのまとめ資料
ThemeRoller
西畑一馬のjQuery Mobileデザイン入門

]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.finefinefine.jp/web/kiji1834/">jQuery Mobileのテンプレート</a></li>
<li><a href="http://www.finefinefine.jp/web/kiji1549/">jQuery Mobileのまとめ資料</a></li>
<li><a href="http://jquerymobile.com/themeroller/">ThemeRoller</a></li>
<li><a href="http://ascii.jp/elem/000/000/607/607366/">西畑一馬のjQuery Mobileデザイン入門</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/jquery-sample/1067.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/jquery-sample/1067.html" />
	</item>
		<item>
		<title>3分動画でマスターする、初心者向けプログラミング学習サイト</title>
		<link>http://d-craft.net/php-sample/1064.html</link>
		<comments>http://d-craft.net/php-sample/1064.html#comments</comments>
		<pubDate>Thu, 05 Apr 2012 14:46:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1064</guid>
		<description><![CDATA[「ドットインストール」は3分動画でマスターできる初心者向けプログラミング学習サイトです。
無料なので登録してみました。
プログラミングに興味がある方は、これをきっかけにはじめてみてはいかが？
⇒ドットインストール
]]></description>
			<content:encoded><![CDATA[<p>「ドットインストール」は3分動画でマスターできる初心者向けプログラミング学習サイトです。<br />
無料なので登録してみました。<br />
プログラミングに興味がある方は、これをきっかけにはじめてみてはいかが？<br />
⇒<a href="http://dotinstall.com/">ドットインストール</a></p>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/php-sample/1064.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/php-sample/1064.html" />
	</item>
		<item>
		<title>メール設定の手順</title>
		<link>http://d-craft.net/%e6%9c%aa%e5%88%86%e9%a1%9e/1058.html</link>
		<comments>http://d-craft.net/%e6%9c%aa%e5%88%86%e9%a1%9e/1058.html#comments</comments>
		<pubDate>Mon, 02 Apr 2012 11:02:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1058</guid>
		<description><![CDATA[Windows7 メール設定 （Windows Live メール 2011）
Windows7 メール設定 （Windows Live メール 2009）
WindowsXP電子メール接続設定方法
OutlookExpr [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ictnet.jp/web/modules/subscriber/index.php?content_id=6">Windows7 メール設定 （Windows Live メール 2011）</a></p>
<p><a href="http://www.ictnet.jp/web/modules/subscriber/index.php?content_id=7">Windows7 メール設定 （Windows Live メール 2009）</a></p>
<p><a href="http://www.mynet.ne.jp/support/manual/xp_outlook.html">WindowsXP電子メール接続設定方法</a></p>
<p><a href="http://www.ktroad.ne.jp/suport/outlook/index.html">OutlookExpressの設定</a><br />
<a href="http://www.banban.jp/member/support/manual/mail/application/win7/mo2010.html#anc01">Outlook2011の設定</a></p>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/%e6%9c%aa%e5%88%86%e9%a1%9e/1058.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/%e6%9c%aa%e5%88%86%e9%a1%9e/1058.html" />
	</item>
		<item>
		<title>カテゴリーやページ毎に個別の入力欄を用意するWPプラグイン</title>
		<link>http://d-craft.net/wpinfo/1056.html</link>
		<comments>http://d-craft.net/wpinfo/1056.html#comments</comments>
		<pubDate>Fri, 23 Mar 2012 05:44:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ワードプレス関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1056</guid>
		<description><![CDATA[WordPressのカスタムフィールドは、いくつかプラグインがありますが、使いやすそうなプラグインを見つけました。
⇒ Custom Fields of Each Category
最初の設定がわからず、少し時間かかりま [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressのカスタムフィールドは、いくつかプラグインがありますが、使いやすそうなプラグインを見つけました。</p>
<p>⇒ <a href="http://www.shibasaki-k.com/wordpress/wp-content/uploads/2011/03/custom-fields-of-each-category_0.0.6.zip">Custom Fields of Each Category</a></p>
<p>最初の設定がわからず、少し時間かかりましたが、一度設定してみると簡単にできると思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/wpinfo/1056.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/wpinfo/1056.html" />
	</item>
		<item>
		<title>フォームで使えるjQueryプラグイン50選</title>
		<link>http://d-craft.net/jquery-sample/1053.html</link>
		<comments>http://d-craft.net/jquery-sample/1053.html#comments</comments>
		<pubDate>Thu, 22 Mar 2012 00:14:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1053</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://d-craft.net/wp/wp-content/uploads/2012/03/1332375157429.jpg" rel="lightbox[pics1053]" title="1332375157429"><img src="http://d-craft.net/wp/wp-content/uploads/2012/03/1332375157429.thumbnail.jpg" alt="1332375157429" width="200" height="200" class="attachment wp-att-1054 alignleft" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/jquery-sample/1053.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/jquery-sample/1053.html" />
	</item>
		<item>
		<title>BR タグを改行コードに変換する</title>
		<link>http://d-craft.net/php-sample/1050.html</link>
		<comments>http://d-craft.net/php-sample/1050.html#comments</comments>
		<pubDate>Wed, 21 Mar 2012 03:10:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP関連]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1050</guid>
		<description><![CDATA[PHP では、nl2br と対になる br2nl 関数は存在しませんので、正規表現を使って BR タグを改行コードに変換する関数を作りました。 

/*
 * BR タグを改行コードに変換する
 */
function  [...]]]></description>
			<content:encoded><![CDATA[<p>PHP では、nl2br と対になる br2nl 関数は存在しませんので、正規表現を使って BR タグを改行コードに変換する関数を作りました。 </p>
<pre class="brush: php;">
/*
 * BR タグを改行コードに変換する
 */
function br2nl($string)
{
    // 大文字・小文字を区別しない
    return preg_replace('/&lt;br[[:space:]]*\/?[[:space:]]*&gt;/i', &quot;\n&quot;, $string);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/php-sample/1050.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/php-sample/1050.html" />
	</item>
		<item>
		<title>国産オープンソースの「BaserCMS」とは？</title>
		<link>http://d-craft.net/web-tools/1047.html</link>
		<comments>http://d-craft.net/web-tools/1047.html#comments</comments>
		<pubDate>Tue, 20 Mar 2012 05:06:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[役立ちwebツール]]></category>

		<guid isPermaLink="false">http://d-craft.net/?p=1047</guid>
		<description><![CDATA[cakePHPの情報を探していたところ、「baserCMS」というCMSを見つけました。
公式サイトに以下のように書いてありました。
baserCMSは、まさにWEBサイト制作の現場から生まれました。
baserCMS（ [...]]]></description>
			<content:encoded><![CDATA[<p>cakePHPの情報を探していたところ、「baserCMS」というCMSを見つけました。<br />
公式サイトに以下のように書いてありました。</p>
<blockquote><p>baserCMSは、まさにWEBサイト制作の現場から生まれました。</p>
<p>baserCMS（ベーサーシーエムエス）とは、オープンソースフレームワーク「CakePHP」をベースとし、環境準備の素早さに重点を置いた基本制作支援プロジェクトから生まれた国産CMS（コンテンツマネージメントシステム）です。WEBサイトに最低限必要となるメールフォームや新着ブログなどのプラグインや管理画面の枠組みを最初から装備し、携帯サイトにも対応しています。</p>
<p>運用もカンタンで、パソコンに不慣れな方でも簡単に更新出来るような仕組みになっており、マニュアルやソースコードのコメントにおいて日本語を標準としているのも国産CMSの強みです。<br />
この「わかりやすい」baserCMSをWEB制作現場における制作の土台としてご利用頂けたら幸いです。</p></blockquote>
<p>試しにインストールしてみました。<br />
⇒　<a href="http://d-craft.net/basercms2/" target="_blank">ディークラフトのサイトをbaserCMSで作ってみました。</a></p>
<p>ちょっと慣れが必要ですが、結構、簡単に構築できますね。<br />
研究してみます。</p>
]]></content:encoded>
			<wfw:commentRss>http://d-craft.net/web-tools/1047.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://d-craft.net/web-tools/1047.html" />
	</item>
	</channel>
</rss>

