<?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/"
	>

<channel>
	<title>lllnorikolll@online &#187; PHP</title>
	<atom:link href="http://blog.lllnorikolll.com/archives/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.lllnorikolll.com</link>
	<description>オンライン - WEBアプリケーション開発関連のメモなど</description>
	<lastBuildDate>Sat, 15 Oct 2011 05:08:36 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>php.net でコナミコマンド</title>
		<link>http://blog.lllnorikolll.com/archives/540</link>
		<comments>http://blog.lllnorikolll.com/archives/540#comments</comments>
		<pubDate>Wed, 20 Apr 2011 16:46:47 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ネタ]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=540</guid>
		<description><![CDATA[一時的なネタなのかと思ったら、まだ使えたので記念メモ。 www.php.net で「上上下下左右左右ba(Return)」と押して、画面左上のphpロゴ部分に注目。]]></description>
			<content:encoded><![CDATA[<p>一時的なネタなのかと思ったら、まだ使えたので記念メモ。</p>
<p><a href="http://www.php.net" target="_blank">www.php.net</a> で「上上下下左右左右ba(Return)」と押して、画面左上のphpロゴ部分に注目。</p>
<p><a href="http://blog.lllnorikolll.com/files/2011/04/1004567fa7deba36588d1c810612de5d.png"><img class="aligncenter size-full wp-image-541" title="php.netコナミコマンド" src="http://blog.lllnorikolll.com/files/2011/04/1004567fa7deba36588d1c810612de5d.png" alt="" width="223" height="128" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/540/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>第3回PHP懇親会参加報告</title>
		<link>http://blog.lllnorikolll.com/archives/163</link>
		<comments>http://blog.lllnorikolll.com/archives/163#comments</comments>
		<pubDate>Sun, 09 Nov 2008 13:05:31 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[イベント]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=163</guid>
		<description><![CDATA[今日はPHP懇親会（http://events.php.gr.jp/events/show/59）に参加してきました！ 全員発表ということで、予告していたZend PHP Certification的な何かということで、 [...]]]></description>
			<content:encoded><![CDATA[<p>今日はPHP懇親会（<a href="http://events.php.gr.jp/events/show/59" target="_blank">http://events.php.gr.jp/events/show/59</a>）に参加してきました！</p>
<p>全員発表ということで、予告していたZend PHP Certification的な何かということで、クイズをしてきました！<br />
資料はこちら→（<a href="http://www.slideshare.net/lllnorikolll/zend-php5-certification-presentation" target="_blank">http://www.slideshare.net/lllnorikolll/zend-php5-certification-presentation</a>）にUPしました。</p>
<p>問題１の方は、$cに入っているのは何でしょう？というもの。<br />
正解はAのNULLなのですが、これ、functionにreturnが書いてないんですね。そんなわけでNULLです。</p>
<p>問題２の方は、一見普通なのですが、「&lt;? ?&gt;」が無いのでPHPとして動きません！というわけでDのこの中に答えはないが正解。</p>
<p>実はみんな飲みながらぐだぐだーっとなったあたりで発表するのを想定していたのですが、私が発表するころはまだお酒一滴も入らない状態だったので、かなり想定外（＞＜）<br />
でも、みなさん楽しんでいただけたようだったので、よかったよかった。</p>
<p>個人的に気になったことは、emacsの師匠であるsuzukiさんのNxhtmlと、connvoi_tyouさんの車庫入れが見事だった。（これは来ていた人にしかわからないネタかもしれないけれど・・・）</p>
<p>そして、会場の片隅では、そろそろSONYαを買いそうなm-takagiさんにα350を手渡し、実際に写真をとってもらうという別イベントが（笑）<br />
近々αユーザがまた一人増えそうな予感です。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/163/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>日付妥当性チェックをするときに</title>
		<link>http://blog.lllnorikolll.com/archives/94</link>
		<comments>http://blog.lllnorikolll.com/archives/94#comments</comments>
		<pubDate>Tue, 09 Sep 2008 08:06:57 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=94</guid>
		<description><![CDATA[PHPで日付の妥当性チェックをする際に、checkdate関数をよく使うのですが、 マニュアルをよくよく見ると・・・ 「年は 1 から 32767 の間となります。 」と。。。 で、気になったわけです。 [テキストボック [...]]]></description>
			<content:encoded><![CDATA[<p>PHPで日付の妥当性チェックをする際に、checkdate関数をよく使うのですが、<br />
<a href="http://jp2.php.net/manual/ja/function.checkdate.php" target="_blank">マニュアル</a>をよくよく見ると・・・</p>
<p>「年は 1 から 32767 の間となります。 」と。。。</p>
<p>で、気になったわけです。</p>
<p><code><br />
[テキストボックス]年[テキストボックス]月[テキストボックス]日<br />
</code></p>
<p>という見た目の入力項目で、年のテキストボックスに西暦の下２桁を入れた場合どうなるのか。<br />
試しに「78」と入力してみると、みごと日付は妥当だと判断されるんですね。</p>
<p>で、そのままmysqlでdate型になっているカラムにインサートしちゃうとどうなるかというと。。。<br />
そこは補完が効いて「1978」年で登録されると。<br />
「08」と入力するとDBでは2008年で登録されると。</p>
<p>境目は「69」と「70」のところにあって、<br />
「69」⇒「2069」<br />
「70」⇒「1970」<br />
と補完されました。</p>
<p>この境目については、epoch前とepoch後というWassrメッセージを頂いているのですが、ここでは割愛・・・</p>
<p>結局、年の部分に4桁のチェックは必要だなぁ。と、思った次第です。<br />
あと、テキストボックスの場合は、左側に「西暦」とか表示してあげるとわかりやすいと思いました。</p>
<p>以上、メモ書きでした。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/94/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ベーシック認証のかかっている別サイトにJPEG画像を生データでPOSTするメモ</title>
		<link>http://blog.lllnorikolll.com/archives/90</link>
		<comments>http://blog.lllnorikolll.com/archives/90#comments</comments>
		<pubDate>Mon, 25 Aug 2008 14:09:47 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend_Http]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=90</guid>
		<description><![CDATA[苦労したのでメモ。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 $Url = 'http://ほげほげー.com/ほげー/ほげー.php'; $UserId [...]]]></description>
			<content:encoded><![CDATA[<p>苦労したのでメモ。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$Url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://ほげほげー.com/ほげー/ほげー.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$UserId</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ユーザID'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Pwd</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'パスワード'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$binaryData</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span>’ファイル名’<span style="color: #339933;">,</span> FILE_BINARY<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$arrUrl</span> <span style="color: #339933;">=</span> <span style="color: #990000;">parse_url</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$Url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$arrUrl</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;host&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$path</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$arrUrl</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;path&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$port</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arrUrl</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;port&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$arrUrl</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;port&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$socket</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">stream_socket_client</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tcp://'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$host</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">':'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$port</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$strHeader</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;POST &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$path</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; HTTP/1.1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
             <span style="color: #0000ff;">&quot;Host: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$host</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
             <span style="color: #0000ff;">&quot;Content-type: application/jpeg<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
             <span style="color: #0000ff;">&quot;Authorization: Basic &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">base64_encode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$UserId</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$Pwd</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
             <span style="color: #0000ff;">&quot;Content-length: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$entity</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>size <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
             <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">@</span><span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$socket</span><span style="color: #339933;">,</span> <span style="color: #000088;">$strHeader</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$binaryData</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$buff</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$socket</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$response</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$buff</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">@</span><span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$socket</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><strong>ちなみにZendFrameworkのライブラリにZend_Httpという便利なものがあります！！！</strong><br />
Zend_Httpなら、下記のように書くだけ！</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Zend/Http/Client.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$Url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://ほげほげー.com/ほげー/ほげー.php'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$UserId</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ユーザID'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Pwd</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'パスワード'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$binaryData</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span>’ファイル名’<span style="color: #339933;">,</span> FILE_BINARY<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$client</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Http_Client<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$client</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setUri<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$client</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setAuth<span style="color: #009900;">&#40;</span><span style="color: #000088;">$UserId</span><span style="color: #339933;">,</span> <span style="color: #000088;">$Pwd</span><span style="color: #339933;">,</span> Zend_Http_Client<span style="color: #339933;">::</span><span style="color: #004000;">AUTH_BASIC</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$client</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setRawData<span style="color: #009900;">&#40;</span><span style="color: #000088;">$binaryData</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'application/jpeg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>request<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'POST'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/90/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista+xamppでphpコマンドライン実行する。</title>
		<link>http://blog.lllnorikolll.com/archives/85</link>
		<comments>http://blog.lllnorikolll.com/archives/85#comments</comments>
		<pubDate>Sun, 24 Aug 2008 09:55:27 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[メモ箱]]></category>
		<category><![CDATA[Gallery2]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=85</guid>
		<description><![CDATA[Vista+xamppで、Gallery2のモジュールのひな形を作るメモだったりします。 [スタート]⇒[コンピュータ]を右クリック⇒[プロパティ]⇒[システムの詳細設定]⇒[続行]でシステムのプロパティ画面が開く。「詳 [...]]]></description>
			<content:encoded><![CDATA[<p>Vista+xamppで、<a title="gallery2" href="http://gallery.menalto.com/" target="_blank">Gallery2</a>のモジュールのひな形を作るメモだったりします。</p>
<p>[スタート]⇒[コンピュータ]を右クリック⇒[プロパティ]⇒[システムの詳細設定]⇒[続行]でシステムのプロパティ画面が開く。「詳細設定」タブの「環境変数」ボタンを押す。</p>
<p>「システムの環境変数の欄に「Path」という項目があるので、その項目を選択して「編集」ボタンを押す。「変数値」の最後に「;c:\xampp\php」を追記。</p>
<p>で、OKOKで画面を閉じていく。コマンドプロンプトを立ち上げっぱなしの場合は、一度閉じてから開く。</p>
<p>実行したいPHPファイルのあるディレクトリに移動して、「php ファイル名.php」で実行できる。</p>
<p>が！！！だ、Gallery2のモジュールのひな形を作成するcreate-module.phpをこの方法で実行すると、下記のメッセージが出る。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\xampp\htdocs\gallery2\lib\tools\creator<span style="color: #000000; font-weight: bold;">&gt;</span>php create-module.php
You must run this from the gallery2 directory</pre></div></div>

<p>しかたないので、C:\xampp\htdocs\gallery2まで移動してから実行したらうまくいった！</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\xampp\htdocs\gallery2<span style="color: #000000; font-weight: bold;">&gt;</span>php lib\tools\creator\create-module.php
What is the name of your module? <span style="color: #7a0874; font-weight: bold;">&#91;</span>Hello World<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>ここはモジュール名ほげほげー<span style="color: #7a0874; font-weight: bold;">&#41;</span>
What is the <span style="color: #c20cb9; font-weight: bold;">id</span> of your module? <span style="color: #7a0874; font-weight: bold;">&#91;</span>wifigadgets<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>ここはモジュールIDほげほげー<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span>
Your module is ready<span style="color: #000000; font-weight: bold;">!</span>  You must build it by doing:
&nbsp;
  <span style="color: #7a0874; font-weight: bold;">cd</span> modules<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ここはモジュールIDほげほげー<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>classes
  <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> clean
&nbsp;
Then you can go to the Site Admin -<span style="color: #000000; font-weight: bold;">&gt;</span> Modules
page and <span style="color: #c20cb9; font-weight: bold;">install</span> and activate your module<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendFrameworkのZend_Pdfで日本語フォントを使う</title>
		<link>http://blog.lllnorikolll.com/archives/65</link>
		<comments>http://blog.lllnorikolll.com/archives/65#comments</comments>
		<pubDate>Tue, 05 Aug 2008 04:38:35 +0000</pubDate>
		<dc:creator>lllnorikolll</dc:creator>
				<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.lllnorikolll.com/?p=65</guid>
		<description><![CDATA[ZendFrameworkのZend_Pdf（http://framework.zend.com/manual/ja/zend.pdf.html） を、試してみました。 ところが、日本語が表示されない。 こちらのサイト→ [...]]]></description>
			<content:encoded><![CDATA[<p>ZendFrameworkのZend_Pdf（<a href="http://framework.zend.com/manual/ja/zend.pdf.html" target="_blank">http://framework.zend.com/manual/ja/zend.pdf.html</a>）</p>
<p>を、試してみました。<br />
ところが、日本語が表示されない。</p>
<p>こちらのサイト→（<a href="http://eringi.com/weblog/archives/2008/03/zend_pdf.html" target="_blank">Zend_Pdf で日本語が使えるようになってた</a>）<br />
を教えてもらって、ここに書いているようにフォントファイルをダウンロードして配置したら、ちゃんと日本語が使えました！</p>
<p>2008/08/05現在、ZendFrameworkのZend_Pdfで利用できるデフォルトのフォント指定は、下記のもののみでした。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">const</span> FONT_COURIER <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Courier'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_COURIER_BOLD <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Courier-Bold'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_COURIER_OBLIQUE <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Courier-Oblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_COURIER_ITALIC <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Courier-Oblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_COURIER_BOLD_OBLIQUE <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Courier-BoldOblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_COURIER_BOLD_ITALIC <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Courier-BoldOblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_HELVETICA <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Helvetica'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_HELVETICA_BOLD <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Helvetica-Bold'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_HELVETICA_OBLIQUE <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Helvetica-Oblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_HELVETICA_ITALIC <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Helvetica-Oblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_HELVETICA_BOLD_OBLIQUE <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Helvetica-BoldOblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_HELVETICA_BOLD_ITALIC <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Helvetica-BoldOblique'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_SYMBOL <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Symbol'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_TIMES_ROMAN <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Times-Roman'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_TIMES <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Times-Roman'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_TIMES_BOLD <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Times-Bold'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_TIMES_ITALIC <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Times-Italic'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_TIMES_BOLD_ITALIC <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Times-BoldItalic'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">const</span> FONT_ZAPFDINGBATS <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ZapfDingbats'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.lllnorikolll.com/archives/65/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

