<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>WEB備忘録（うぇぶびぼうろく）</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/" />
   <link rel="self" type="application/atom+xml" href="http://web.p-jisoku.com/atom.xml" />
   <id>tag:web.p-jisoku.com,2007://2</id>
   <updated>2007-08-13T01:42:22Z</updated>
   <subtitle>WEB関係の記録しておきたいことを、どこからでも見れるようにMTで公開します。</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.33-ja</generator>

<entry>
   <title>VPSレンタルサーバー</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2007/08/vps.html" />
   <id>tag:web.p-jisoku.com,2007://2.42</id>
   
   <published>2007-08-05T02:09:04Z</published>
   <updated>2007-08-13T01:42:22Z</updated>
   
   <summary>root権限もあり手ごろなVPS</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="CMS" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="アフェリエイト" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="36" label=".htaccess" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="112" label="Ruby" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="128" label="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="126" label="VPS" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="124" label="レンタルサーバー" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[<a href="http://px.a8.net/svt/ejp?a8mat=U9HWF+9T22IA+348+609HT" target="_blank">
<img border="0" width="88" height="31" alt="" src="http://www29.a8.net/svt/bgt?aid=050831583593&wid=001&eno=01&mid=s00000000404001009000&mc=1"></a>
<img border="0" width="1" height="1" src="http://www14.a8.net/0.gif?a8mat=U9HWF+9T22IA+348+609HT" alt="">

ロリポップでMTインストールしたり、サイト運営していたが、root権限とデータベースいくつも使いたくなったので、VPSを借りることにした。

色々探して、Ruby on Railsも使えるし、値段も手ごろだったので<strong>使えるねっと</strong>にした。

<A href="http://px.a8.net/svt/ejp?a8mat=163NYW+6BFLV6+E3S+60WN6" target="_blank">最先端の仮想専用サーバー</a>
<img border="0" width="1" height="1" src="http://www17.a8.net/0.gif?a8mat=163NYW+6BFLV6+E3S+60WN6" alt="">

Linux VPSのシルバープランだが、使ってみてきついようならゴールドに変更も出来るようなので安心だ。]]>
      引越しは思ったよりトラブル少なくいけたけれど。

MTで使っているmysqlのバージョンが4.1に上がって文字化けしていたので、config.cgiの SQLSetNames 1のコメントをはずしたらOKでした。

.htaccessがFTPで見れなかったので、/etc/proftpd.confの末尾にListOptions &quot;-a&quot;を追加。

cgiが動かないので、.htaccessに

Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

を追加。
   </content>
</entry>
<entry>
   <title>マイグレーションの型</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2007/04/post_9.html" />
   <id>tag:web.p-jisoku.com,2007://2.41</id>
   
   <published>2007-04-19T01:18:27Z</published>
   <updated>2007-04-19T02:42:26Z</updated>
   
   <summary>マイグレーションとデータベースでの型</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="122" label="ActiveRecord" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="75" label="MySQL" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="112" label="Ruby" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="123" label="マイグレーション" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[<table width="100%" border="1" cellspacing="0">
  <tr>
    <th scope="col">マイグレーション</th>
    <th scope="col">Ruby</th>
    <th scope="col">MySQL</th>
  </tr>
  <tr>
    <td>:primary_key</td>
    <td>Fixnum</td>
    <td>int(11) DEFAULT NULL auto_increment PRIMARY KEY </td>
  </tr>
  <tr>
    <td>:string</td>
    <td>String</td>
    <td>varchar(255)</td>
  </tr>
  <tr>
    <td>:text</td>
    <td>String</td>
    <td>text</td>
  </tr>
  <tr>
    <td>:integer</td>
    <td>Fixnum</td>
    <td>int(11)</td>
  </tr>
  <tr>
    <td>:float</td>
    <td>Float</td>
    <td>float</td>
  </tr>
  <tr>
    <td>:datetime</td>
    <td>Time</td>
    <td>datetime</td>
  </tr>
  <tr>
    <td>:timestamp</td>
    <td>Time</td>
    <td>datetime</td>
  </tr>
  <tr>
    <td>:time</td>
    <td>Time</td>
    <td>datetime</td>
  </tr>
  <tr>
    <td>:date</td>
    <td>date</td>
    <td>date</td>
  </tr>
  <tr>
    <td>:binary</td>
    <td>String</td>
    <td>blob</td>
  </tr>
  <tr>
    <td>:boolean</td>
    <td>Object</td>
    <td>tinyint(1)</td>
  </tr>
</table>
]]>
      
   </content>
</entry>
<entry>
   <title>AUTO_INCREMENTでインサートした値</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2007/04/auto_increment.html" />
   <id>tag:web.p-jisoku.com,2007://2.40</id>
   
   <published>2007-04-05T08:51:13Z</published>
   <updated>2007-04-05T09:16:05Z</updated>
   
   <summary>AUTO_INCREMENTでインサートしたIDを取得する関数</summary>
   <author>
      <name></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="120" label="LAST_INSERT_ID()" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="118" label="MYSQL" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="17" label="PHP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="117" label="mysql_insert_id()" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[AUTO_INCREMENTを設定してあるテーブルにインサートした時にインサートされたIDを取得する方法

PHPではmysql_insert_id()関数を実行するとIDが取得できます。

<a href="http://jp.php.net/manual/ja/function.mysql-insert-id.php">PHPのマニュアル</a>

SQLではクエリ文字列の中でLAST_INSERT_ID()関数を使うとIDが取得出来ます。

<a href="http://dev.mysql.com/doc/refman/4.1/ja/getting-unique-id.html">MYSQLのマニュアル</a>]]>
      
   </content>
</entry>
<entry>
   <title>Railsの本</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2007/04/rails.html" />
   <id>tag:web.p-jisoku.com,2007://2.39</id>
   
   <published>2007-04-03T19:40:57Z</published>
   <updated>2007-04-03T19:54:31Z</updated>
   
   <summary>Ruby on Railsを勉強するのによさそうな本</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="114" label="Rails" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="112" label="Ruby" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="115" label="入門" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="43" label="本" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[Ruby on Railsを勉強するのによさそうな本

<a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798013951/pjisoku-22/ref=nosim/" target="_blank"><img src="http://ec1.images-amazon.com/images/P/4798013951.01._SCMZZZZZZZ_.jpg" border="0" /></a>

<a href="http://amazon.p-jisoku.com/detail.php?ItemId=4798013951">Ruby on Rails入門―優しいRailsの育て方</a>

リファレンスとしても長く使えそう。

<a href="http://amazon.p-jisoku.com/index.php?kind=466298&detail=492352&sort=&SearchTitle=ruby">RubyやRailsに関する本</a>]]>
      
   </content>
</entry>
<entry>
   <title>クイックカート</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2007/02/post_8.html" />
   <id>tag:web.p-jisoku.com,2007://2.37</id>
   
   <published>2007-02-24T05:15:11Z</published>
   <updated>2007-02-24T05:44:25Z</updated>
   
   <summary>MTの使えそうなカートのプラグイン</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Book Mark" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="CMS" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MT" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="26" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="110" label="クイックカート" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="109" label="ショッピングカート" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[フリーのショッピングカートもたくさんあり、<a href="http://zen-cart.jp/">zen cart</a>も一度カスタマイズしましたが、機能はたくさんあり優秀なのですが、PHPのソースの中にhtmlが埋め込まれているのでクライアントの要望にこたえるのが大変でした。

何か良いものはないかと思っていたら、MTのプラグインでフリーの（有料版もあります）カートがありました。

ブログ以外にも普通のサイトでも使えそうです。
<a href="http://www.quick-solution.com/" taget="_blank">QUICK CART </a>

すでにMTに組み込まれて販売されています。
<a href="http://www.sixapart.jp/movabletype/ecpack/" taget="_blank">Movable Type EC Pack</a>

実際にクイックカートを使用しているサイト
<a href="https://info.shinmai.co.jp/book/" taget="_blank">信毎の本オンラインショップ 信濃毎日新聞社</a>

フラッシュベースで画面の遷移がなく、ユーザーにもクライアントにも使いやすそうです。
]]>
      
   </content>
</entry>
<entry>
   <title>VirtualHostの追加</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2007/01/virtualhost.html" />
   <id>tag:web.p-jisoku.com,2007://2.34</id>
   
   <published>2007-01-27T01:44:13Z</published>
   <updated>2007-01-27T02:34:54Z</updated>
   
   <summary>XAMPPにローカルの公開フォルダを追加してみました。 ¥apache¥conf...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="15" label="XAMPP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="108" label="apache" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="106" label="hosts" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="38" label="httpd.conf" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="107" label="開発環境" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[XAMPPにローカルの公開フォルダを追加してみました。<br />
<br />
¥apache¥conf¥httpd.confファイルに<br />
<br />
&lt;VirtualHost *:80&gt;<br />
DocumentRoot &quot;C:\xampp\xampp\htdocs&quot;<br />
ServerName localhost<br />
&lt;/VirtualHost&gt;<br />
&lt;VirtualHost *:80&gt;<br />
DocumentRoot &quot;C:\workspace&quot;<br />
ServerName workspace<br />
&lt;/VirtualHost&gt;<br />
<br />
を追加して<br />
<br />
hostsファイルに<br />
（XPはC:¥WINDOWS¥system32¥drivers¥etcの中にあります）
<br />
127.0.0.1       localhost<br />
127.0.0.1       workspace<br />
<br />
を追加してapacheを再起動します。<br />

これで、ブラウザでworkspaceでアクセスすると、C:/workspacの中が見れます。]]>
      
   </content>
</entry>
<entry>
   <title>ヒアドキュメント</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/12/post_7.html" />
   <id>tag:web.p-jisoku.com,2006://2.33</id>
   
   <published>2006-12-20T17:21:47Z</published>
   <updated>2006-12-20T17:50:37Z</updated>
   
   <summary>PHPで大量のHTMLタグを変数に代入する時に便利です。</summary>
   <author>
      <name></name>
      
   </author>
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="88" label="HTML" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="17" label="PHP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="104" label="ヒアドキュメント" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="105" label="出力" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[PHPで大量のHTMLを変数に代入する時や、HTMLの中で変数を展開したい時などに便利なのがヒアドキュメントです。

記述は

$a = &lt;&lt;&lt;HTML_END
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
HTML_END;

のようにします。

これを表示すると半角スペースが入ったテーブルが表示されます。

分りやすいように終わりの文字を大文字で記述することが多いです。

改行も反映されます。
]]>
      
   </content>
</entry>
<entry>
   <title>ページの移動方法</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/12/post_6.html" />
   <id>tag:web.p-jisoku.com,2006://2.32</id>
   
   <published>2006-12-11T14:30:41Z</published>
   <updated>2006-12-11T15:19:54Z</updated>
   
   <summary>webサイトの移動の方法を紹介しています。</summary>
   <author>
      <name></name>
      
   </author>
         <category term="HTML" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Javascript" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="36" label=".htaccess" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="103" label="refresh" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="102" label="移動" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="101" label="遷移" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[<strong>webのページの遷移方法</strong>

htmlのaタグで移動するのが基本ですが、それ以外にも色々な移動、遷移、リダイレクトする方法があります。


<strong>aタグのリンク</strong>
一番よく使う方法です。

&lt;a href=&quot;http://web.p-jisoku.com/&quot;&gt;web備忘録&lt;/a&gt; 


<strong>metaタグのリフレッシュ</strong>
少しの間情報を見せてから自動的に移動する時によく使います。
URLの前の3は移動するまでの時間で、変更出来ます。

&lt;meta http-equiv=&quot;refresh&quot; content=&quot;3;URL=http://web.p-jisoku.com/&quot; /&gt;


<strong>formタグのサブミット</strong>
問い合わせフォームなどでよく使います。
フォームの内容を受け取る事が出来ます。

&lt;form action=&quot;http://web.p-jisoku.com/&quot; method=&quot;post&quot;&gt;
&lt;input type=&quot;submit&quot; /&gt;
&lt;/form&gt;


<strong>javascript</strong>

location.href = "web.p-jisoku.com/";
関数にして使うことが多いです。


window.open('web.p-jisoku.com/')
別のウィンドウが立ち上がります。


<strong>php</strong>

header("Location: http://web.p-jisoku.com/");
条件分岐して移動先を変えるときなどによく使います。


<strong>.htaccess</strong>

Redirect permanent /~user/web/ http://web.p-jisoku.com/
アクセスしようとしたら違うページに飛ばされます。

]]>
      
   </content>
</entry>
<entry>
   <title>XAMPPの日本語サイト</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/xampp_1.html" />
   <id>tag:web.p-jisoku.com,2006://2.31</id>
   
   <published>2006-11-28T08:12:42Z</published>
   <updated>2006-11-28T08:28:26Z</updated>
   
   <summary>XAMPPの日本語サイトが出来てます。</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Tools" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="17" label="PHP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="15" label="XAMPP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="9" label="環境" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="10" label="開発" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[XAMPPのサイトが日本語に翻訳されています。

<a href="http://www.apachefriends.org/jp/index.html">XAMPPの日本語サイト</a>

1.5.5は日本語にも対応しています。

バグがあるみたいでこちらで解決方法が載っていました。

<a href="http://support.exxaxon.co.jp/index.php?topic=6.0">サポートフォーラム</a>]]>
      
   </content>
</entry>
<entry>
   <title>php.iniの設定（XAMPP 1.4.9）</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/phpinixampp_149.html" />
   <id>tag:web.p-jisoku.com,2006://2.30</id>
   
   <published>2006-11-22T19:30:05Z</published>
   <updated>2006-11-22T20:07:54Z</updated>
   
   <summary>XAMPPの1.4.9使用時のphp.iniの設定</summary>
   <author>
      <name></name>
      
   </author>
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="15" label="XAMPP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="100" label="mbstring" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="98" label="php.ini" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="99" label="register_globals" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[現在XAMPPの1.4.9を使っていますが、php.iniの設定をいくつか変更したのでメモしておきます。

phpはversion 4.3.9です。

XAMPPのphp.iniはxampp/apache/bin/の中にあります。



<strong>register_globals</strong>

register_globals　= ONの時はformの名前の変数に自動でセットされてしまう。

便利なようだが、思わぬ動きをするのでOFFに変更。



<strong>extension=php_mbstring.dll</strong>

mbstring関数を使うので先頭のコメント（;）をはずします。



設定の変更を反映させるにはアパッチを再起動させます。]]>
      
   </content>
</entry>
<entry>
   <title>アクセス解析 （AccessAnalyzer.com）</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/_accessanalyzercom.html" />
   <id>tag:web.p-jisoku.com,2006://2.29</id>
   
   <published>2006-11-19T15:14:08Z</published>
   <updated>2006-11-19T15:39:19Z</updated>
   
   <summary>無料の高性能レンタルアクセス解析サービス</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Tools" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="96" label="AccessAnalyzer.com" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="92" label="SEO" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="93" label="アクセス" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="94" label="解析" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[今現在5つのサイトを運営しており、各サイトをAccessAnalyzer.comでアクセス解析しています。

<a href="http://ax.xrea.com/" target="blank">AccessAnalyzer.com</a>

どんなキーワードで検索されたか、どの検索エンジンでよく見に来てくれるかは、SEOにそんなに力を入れていなくてもやっぱり気になるところです。

初めて使ったのがAccessAnalyzerだったのでほかの解析ツールを知りませんが、非常に満足しています。


<strong>良い点</strong>

無料

解析スピードが速い。

細かく情報を取得している。

調べたい項目ごとに集計出来て見やすい。


<strong>悪い点</strong>

下にプライバシーレポートの警告が出る。

検索エンジンのロポットの巡回がわからない。


ブログなどもテンプレートに解析用のタグを挿入しておけば全ページ解析してくれるので楽です。]]>
      
   </content>
</entry>
<entry>
   <title>HTMLタグCSSの参考サイト</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/htmlcss.html" />
   <id>tag:web.p-jisoku.com,2006://2.28</id>
   
   <published>2006-11-09T02:01:52Z</published>
   <updated>2006-11-12T05:10:52Z</updated>
   
   <summary>ウェブ上で調べられるHTMLとCSSのリファレンス</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Book Mark" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="HTML" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="89" label="CSS" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="88" label="HTML" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="42" label="リファレンス" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="90" label="参考" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[htmlのタグやCSSを調べたい時よくいくサイトです。<br /><br />



<strong>タグインデックス</strong>

html以外にもCSSやjavascriptの解説もあります。

<a href="http://www.tagindex.com/" target="_blank"><img src="http://web.p-jisoku.com/img/link_mini1.gif" alt="タグインデックス" /></a>

<br /><br />

<strong>とほほのＷＷＷ入門</strong>

ソースサンプルがたくさんあります。

<a href="http://www.tohoho-web.com/www.htm" target="_blank"><img src="http://www.tohoho-web.com/image/tohoho.gif" alt="とほほのＷＷＷ入門" /></a>

<br /><br />

<strong>HTMLクイックリファレンス</strong>

CSSのリファレンスとしてよくお邪魔します。

<a href="http://www.htmq.com/" target="_blank"><img src="http://web.p-jisoku.com/img/logo-quick.gif" alt="HTMLクイックリファレンス" /></a>]]>
      
   </content>
</entry>
<entry>
   <title>Movable Typeのファイルのアップロード</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/post_5.html" />
   <id>tag:web.p-jisoku.com,2006://2.27</id>
   
   <published>2006-11-07T15:36:55Z</published>
   <updated>2006-11-10T05:29:11Z</updated>
   
   <summary>MTでファイルのアップロードする時に、書き込み中の投稿が消えてしまったので</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MT" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="82" label="ファイルアップロード" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="83" label="修正" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[ムーバブルタイプでファイルをアップロードする時に、画像を参照してアップロードを押した後に、 

<input type="radio" name="new_entry" checked="checked" />エントリーを投稿
<input type="radio" name="new_entry" />HTMLを表示

<strong>エントリーを投稿</strong>と、<strong>HTMLを表示</strong>の選択がありますが、エントリーを投稿に最初からチェックが入っていて、そのままポップアップか埋め込みボタンを押してしまうと今まで書いていた投稿が消えてしまいます。

皆さんも消えてしまった嫌な経験ないですか？

要するに最初から、<strong>HTMLを表示</strong>にチェックが入っていればいい訳で、ファイルを見つけて書き換えました。

Movable Type Version 3.33-jaですが、tmpl/cms/upload_complete.tmplファイルの109行目（エディタによって変わるかも）の checked="checked"を一行下に書き換えてサーバーのファイルを上書きすればOKです。

<a href="http://web.p-jisoku.com/img/upload.html" onclick="window.open('http://web.p-jisoku.com/img/upload.html','popup','width=570,height=229,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://web.p-jisoku.com/img/upload-thumb.gif" width="460" height="184" alt="" /></a>
]]>
      
   </content>
</entry>
<entry>
   <title>さくらエディタ</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/post_4.html" />
   <id>tag:web.p-jisoku.com,2006://2.26</id>
   
   <published>2006-11-06T14:28:00Z</published>
   <updated>2006-11-06T17:23:24Z</updated>
   
   <summary>MTたぐも強調表示してくれる高性能なエディタ</summary>
   <author>
      <name></name>
      
   </author>
         <category term="HTML" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Tools" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="79" label="MTタグ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="8" label="エディタ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="26" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="81" label="キーワード" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="80" label="強調" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[軽くて、便利で、たくさんカスタマイズ出来る高性能なエディタです。

<a href="http://sakura_editor.at.infoseek.co.jp/snapshot.html" target="_blank">サクラエディタ　Download</a>

お勧めは、右クリックで「サクラエディタで開く」もチェックしてインストールします。

キーワードにMovable Typeを見つけたので。

<strong>MTタグの強調キーワードの設定方法</strong>

MTタグの強調キーワードを配布先　<a href="http://www.magicvox.net/archive/2004/10132234/" target="_blank">Open MagicVox.net</a>

MovableTypeテンプレート  キーワード定義ファイルをコピー＆ペーストしてファイルをサクラエディタをインストールしたフォルダのkeywordフォルダにMT.kwdで保存。

設定&gt; 共通設定&gt; 強調キーワード&gt; セット追加でセット名に「MT」と入力しOK

<img alt="強調キーワード" src="http://web.p-jisoku.com/img/sakura01.gif" width="411" height="373" />


次にインポートで先ほどのkeywordフォルダのMT.kwdを選択しOKする。

次に、タイプ別設定一覧&gt; 設定17（使っていれば次）設定変更&gt; スクリーン&gt; 設定の名前をMTにして、 ファイル拡張子をtplにする（任意のファイル名）。

カラー&gt; 強調キーワード1をMTに、強調キーワード2～10をhtmlにしておく。

<img alt="追加" src="http://web.p-jisoku.com/img/sakura02.gif" width="402" height="367" />

支援&gt; 単語ファイルにkeywordフォルダのMT.kwdを選択しOKする。

以上でサクラエディタで簡単にMTタグを入力出来るようになります。

後PHPも強調設定しています。（PHPのキーワードファイルは1.5.2.1以降はデフォルトでkeywordフォルダに入っているみたいです）]]>
      
   </content>
</entry>
<entry>
   <title>XAMPPのインストール</title>
   <link rel="alternate" type="text/html" href="http://web.p-jisoku.com/2006/11/xampp.html" />
   <id>tag:web.p-jisoku.com,2006://2.25</id>
   
   <published>2006-11-05T03:08:19Z</published>
   <updated>2006-11-11T17:33:37Z</updated>
   
   <summary>過去のバージョンのXAMPPのインストール</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="MySQL" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="PHP" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="75" label="MySQL" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="15" label="XAMPP" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="77" label="インストール" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="76" label="バージョン" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://web.p-jisoku.com/">
      <![CDATA[XAMPPの過去のバージョンをインストールする機会があったのでインストール手順

<a href="http://www.apachefriends.org/en/xampp-windows.html#641" target="_blank">XAMPPの最新バージョンのダウンロード先</a>

現在のバージョン
<a href="http://www.apachefriends.org/en/xampp-windows.html#641" target="_blank"><img alt="現在のバージョン" src="http://web.p-jisoku.com/img/xampp01.gif" width="403" height="202" /></a>



<a href="http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552" target="_blank">XAMPPの過去のバージョンのダウンロード先</a>

XAMPPの過去のバージョン
<a href="http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552" target="_blank"><img alt="XAMPPの過去のバージョン" src="http://web.p-jisoku.com/img/xampp02.gif" width="277" height="393" />
</a>

XAMPP に含まれる Apache，MySQL，PHP のバージョンの遷移は<a href="http://cl.pocari.org/2006-10-22-1.html" target="_blank">cl.pocari.org</a>で調べさせていただきました。

今回はMySQLの4.1.x系が必要だったのでXAMPPの1.4.16をダウンロードしました。


<img alt="Ishikawa.Japan　Asia" src="http://web.p-jisoku.com/img/xampp03.gif" width="485" height="42" />

Ishikawa.Japan　Asiaを選択します。


<img alt="exeファイル" src="http://web.p-jisoku.com/img/xampp04.gif" />

ダウンロードしたexeファイルをクリックします。


<img alt="言語設定" src="http://web.p-jisoku.com/img/xampp05.gif" width="294" height="160" />

JapaneseでOKします。


<img alt="セットアップウィザード" src="http://web.p-jisoku.com/img/xampp06.gif" width="410" height="256" />

セットアップウィザードが出てくるので次へ


<img alt="インストール先" src="http://web.p-jisoku.com/img/xampp07.gif" width="410" height="256" />

インストール先を決めます、デフォルトでもいいですが、私はXAMPPフォルダに変更しました。

インストールをクリックするとはじまります。


<img alt="xampp08.gif" src="http://web.p-jisoku.com/img/xampp08.gif" width="410" height="255" />

以上で完了です。


コントロールパネル（xampp-control.exe）のショートカットをデスクトップに作っておくと便利です。


]]>
      XAMPPの1.4.9使用時のメモ

pearを使おうとしたら、ワーニングが出た。

include_path=&apos;C\xarelease149\xampp\php\pear&apos;になっているみたいだがパスが違うので。

xarelease149を検索したらpearcmd.phpにありパスを自分の環境に書き換えたら動くようになった。

.registryにもxarelease149がたくさんあったが触るのが怖いのでそのままにしている。


   </content>
</entry>

</feed>
