<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>ReachOut - Framework For HTML</title>
<link>https://reachout.t-y4.com/</link>
<description>ウェブページを作るためのPHPスクリプト。ヘッダ、フッタを付加してHTMLを出力する。低機能だけど軽快なスクリプト！</description>
<lastBuildDate>Wed, 15 Apr 2026 22:47:03 +0900</lastBuildDate>
<language>ja</language>
<item>
<title>ドキュメント</title><link>https://reachout.t-y4.com/documentation/index.html</link><description>&lt;!-- config_title:&quot;ドキュメント&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;ドキュメント&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;install&quot;&gt;インストール手順&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;manual&quot;&gt;マニュアル&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/ty4yoshi/reachout/blob/master/UPDATE.md&quot;&gt;更新履歴&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description>
<pubDate>Sat, 14 Mar 2026 10:09:11 +0900</pubDate>
</item>
<item>
<title>ホーム</title><link>https://reachout.t-y4.com/top.php</link><description>&lt;!-- config_title:&quot;ホーム&quot; --&gt;
&lt;!-- config_layout:&quot;default.php&quot; --&gt;
&lt;!-- config_br:&quot;no&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;!-- config_rss_description:&quot;&quot; --&gt;
&lt;h2&gt;ReachOut（リーチアウト）とは&lt;/h2&gt;

&lt;p&gt;ひとことで説明するとウェブページを作るための&lt;a href=&quot;http://www.php.net/&quot;&gt;PHP&lt;/a&gt;スクリプト。&lt;/p&gt;
&lt;p&gt;正直、フレームワークと呼べるほど機能は多くはないが動きは軽快。&lt;br&gt;
ウェブページのヘッダとフッタを共通化するだけの低機能スクリプト。&lt;/p&gt;
&lt;p&gt;このスクリプトの配下にフォルダを作り、&lt;a href=&quot;http://www.htmq.com/&quot;&gt;HTML&lt;/a&gt;ファイルを配置すると動く。&lt;/p&gt;

&lt;H2&gt;なぜこのスクリプトを作ったか&lt;/H2&gt;
&lt;p&gt;私は、ウェブページを作るとき、テキストエディタでHTMLタグを入力して作っている。&lt;br&gt;
理由は、無駄なHTMLを出力せず、なるべく正しいHTMLにしたいから。&lt;/p&gt;
&lt;p&gt;w3cの&lt;a href=&quot;http://validator.w3.org/&quot;&gt;HTML文法チェック&lt;/a&gt;をパスするページにしたい。 （&lt;a href=&quot;http://validator.w3.org/check?uri=https%3A%2F%2Freachout.t-y4.com%2F&quot;&gt;このページのチェック結果&lt;/a&gt;）&lt;/p&gt;

&lt;p&gt;テキストエディタだけで、ウェブサイトのメンテナンスをするのはもちろん大変。&lt;br&gt;
そこで、フリーのcmsをいくつか試してみた。&lt;br&gt;
&lt;a href=&quot;http://drupal.org/&quot;&gt;Drupal&lt;/a&gt;, &lt;a href=&quot;http://www.joomla.org/&quot;&gt;Joomla&lt;/a&gt;, &lt;a href=&quot;http://modx.com/&quot;&gt;MODx&lt;/a&gt;, ..... どれも重い、いらいらする。&lt;/p&gt;

&lt;p&gt;私の欲しい機能はほんの少し、&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;サイト全体のデザインを簡単に変更できる&lt;/li&gt;
	&lt;li&gt;キャッシュ&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://ja.wikipedia.org/wiki/RSS&quot;&gt;RSS&lt;/a&gt;配信&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;動作が軽いフレームワークが欲しい！　たとえ低機能でも。&lt;/h3&gt;

&lt;p&gt;「欲しい物が無いなら作るしかない。」&lt;br&gt;

&lt;h2&gt;機能&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;ヘッダとフッタの共通化（サイト全体、フォルダ単位も可能）&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://ja.wikipedia.org/wiki/Cascading_Style_Sheets&quot;&gt;CSS&lt;/a&gt;ファイルが自動で読み込まれる（フォルダ単位に可能）&lt;/li&gt;
	&lt;li&gt;コンテンツにPHPスクリプトを埋め込み可能&lt;/li&gt;
	&lt;li&gt;＜HEAD＞タグに文字を挿入する（フォルダ単位に可能）&lt;/li&gt;
	&lt;li&gt;キャッシュ（&lt;a href=&quot;http://pear.php.net/package/Cache_Lite&quot;&gt;PEAR:Cache_Lite&lt;/a&gt;を使用）&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://ja.wikipedia.org/wiki/RSS&quot;&gt;RSS&lt;/a&gt;配信は手動（&lt;a href=&quot;/documentation/manual/rss.html&quot;&gt;マニュアル参照&lt;/a&gt;）&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;動作環境&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.php.net/&quot;&gt;PHP5&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://httpd.apache.org/docs/2.2/ja/howto/htaccess.html&quot;&gt;.htaccess&lt;/a&gt; が使える&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;あとは&lt;a href=&quot;http://ja.wikipedia.org/wiki/File_Transfer_Protocol&quot;&gt;FTP&lt;/a&gt;クライアントが大活躍。（私は&lt;a href=&quot;http://www.forest.impress.co.jp/lib/inet/servernt/ftp/winscp.html&quot;&gt;WinSCP&lt;/a&gt;を愛用）&lt;/p&gt;

&lt;h2&gt;ダウンロード&lt;/h2&gt;
&lt;p&gt;これはフリーソフトです。&lt;/p&gt;
&lt;p&gt;テキストエディタでウェブページを作っている方のお役にたつかも．．．。&lt;/p&gt;
&lt;p&gt;このソフトを利用した事によるいかなる損害も私は一切の責任を負いません。&lt;br&gt;
自己の責任の上でどうぞ。&lt;/p&gt;
&lt;p&gt;ライセンスは、&lt;a href=&quot;http://www.opensource.org/licenses/bsd-license.php&quot;&gt;BSD&lt;/a&gt;です。&lt;/p&gt;

&lt;p&gt;ソースはgithubにあります。&lt;a href=&quot;https://github.com/ty4yoshi/reachout/releases/latest&quot;&gt;github - reachout&lt;/a&gt; --- version 0.2.2 modified 2026/03/13 Charset: UTF-8&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;downloads&quot;&gt;ダウンロードページへ&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;インストール&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;documentation/install&quot;&gt;インストール手順&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;マニュアル&lt;/h2&gt;
&lt;p&gt;簡単だけど、&lt;a href=&quot;documentation/manual&quot;&gt;マニュアル&lt;/a&gt;あり。&lt;/p&gt;
&lt;p&gt;詳しくは、index.php のソースを見るとわかる。&lt;/p&gt;

&lt;h2&gt;名前の由来&lt;/h2&gt;
&lt;p&gt;私の大好きなジョージ・デュークの曲名から拝借。
&amp;raquo;&amp;nbsp;
&lt;a href=&quot;http://amzn.to/wDOE1q&quot;&gt;ライト・メッセージ&lt;/a&gt;
&lt;/p&gt;

&lt;h2&gt;お問い合わせ&lt;/h2&gt;
&lt;p&gt;もし何かあれば、メールでどうぞ&lt;/p&gt;
&lt;ul class=&quot;adress&quot;&gt;
&lt;li&gt;&lt;a href=&quot;mailto:reachout.script@gmail.com&quot; class=&quot;adress&quot;&gt;email : reachout.script@gmail.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
<pubDate>Sat, 14 Mar 2026 10:04:00 +0900</pubDate>
</item>
<item>
<title>CSSファイルでデザイン</title><link>https://reachout.t-y4.com/documentation/manual/css.html</link><description>&lt;!-- config_title:&quot;CSSファイルでデザイン&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;CSSファイルでデザイン&lt;/h2&gt;
&lt;p&gt;レイアウトファイルとCSSファイルでウェブページのデザインをする。&lt;/p&gt;
&lt;p&gt;レイアウトファイルとCSSファイルはセットになるので、レイアウトファイルにCSSのタグを書き込む。&lt;/p&gt;
&lt;p&gt;このとき、CSSファイルを設置するディレクトリ名に css という名前は使えない。&lt;br&gt;
css という名前は、ディレクトリ単位のCSSファイルで使用するため。&lt;/p&gt;
&lt;p&gt;ルートに設置するか、ディレクトリを作って設置する場合は、css という名前で始まらないとうまく動かないため、css_def 等の名前にする。&lt;/p&gt;

&lt;h4&gt;例．ルートに css_default というディレクトリを作ってCSSファイルを配置した場合（7行目）&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;
&lt;pre class=&quot;html-source-display&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;01:&lt;/span&gt; &amp;lt;!DOCTYPE html&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;02:&lt;/span&gt; &amp;lt;html lang=&amp;quot;ja&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;03:&lt;/span&gt; &amp;lt;head&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;04:&lt;/span&gt;     &amp;lt;meta charset=&amp;quot;&amp;lt;?= $charset ?&amp;gt;&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;05:&lt;/span&gt;     &amp;lt;base href=&amp;quot;&amp;lt;?= $pageUrlFull ?&amp;gt;&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;06:&lt;/span&gt;     &amp;lt;title&amp;gt;&amp;lt;?= $title ?&amp;gt;&amp;lt;/title&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;07:&lt;/span&gt;     &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?= $homeDir ?&amp;gt;/css_default/default.css&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;08:&lt;/span&gt;     &amp;lt;?= $css ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;09:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;10:&lt;/span&gt;     &amp;lt;?= $header ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;11:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;12:&lt;/span&gt; &amp;lt;/head&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;13:&lt;/span&gt; &amp;lt;body&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;14:&lt;/span&gt; &amp;lt;?= $contents ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;15:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;16:&lt;/span&gt; &amp;lt;/body&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;17:&lt;/span&gt; &amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/code&gt;
&lt;/div&gt;
&lt;h3&gt;CSSファイルを追加できる&lt;/h3&gt;
&lt;p&gt;以下のようなファイル構造の場合、&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
ルートディレクトリ　─┬─　index.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　top.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　layout　───　default.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　css_default　───　default.css (1)
　　　　　　　　　　　│
　　　　　　　　　　　└─　folder01　─┬─　test01.html
　　　　　　　　　　　　　　　　　　　　│
　　　　　　　　　　　　　　　　　　　　├─　layout　───　default.php
　　　　　　　　　　　　　　　　　　　　│
　　　　　　　　　　　　　　　　　　　　└─　css 　─┬─　base.css (2)
　　　　　　　　　　　　　　　　　　　　　　　　　　　│
　　　　　　　　　　　　　　　　　　　　　　　　　　　├─　reset.css (3)
　　　　　　　　　　　　　　　　　　　　　　　　　　　│
　　　　　　　　　　　　　　　　　　　　　　　　　　　└─　fonts.css (4)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;test01.html をリクエストした場合、レイアウトファイルの CSSタグは以下のようになる&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&amp;lt;link&amp;nbsp;rel=&quot;stylesheet&quot;&amp;nbsp;type=&quot;text/css&quot;&amp;nbsp;href=&quot;/css_df/default.css&quot;&amp;gt; (1)
&lt;br /&gt;&amp;lt;link&amp;nbsp;rel=&quot;stylesheet&quot;&amp;nbsp;href=&quot;/folder01/css/base.css&quot;&amp;gt; (2)
&lt;br /&gt;&amp;lt;link&amp;nbsp;rel=&quot;stylesheet&quot;&amp;nbsp;href=&quot;/folder01/css/fonts.css&quot;&amp;gt; (4)
&lt;br /&gt;&amp;lt;link&amp;nbsp;rel=&quot;stylesheet&quot;&amp;nbsp;href=&quot;/folder01/css/reset.css&quot;&amp;gt; (3)
&lt;br /&gt;&lt;/span&gt;
&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;カレントディレクトリに css ディレクトリがあれば、その中の css ファイルを自動的に読み込む。親のディレクトリは探さない、カレントディレクトリのみ。&lt;/p&gt;

</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>＜head＞タグにちょっと追加したい</title><link>https://reachout.t-y4.com/documentation/manual/header.html</link><description>&lt;!-- config_title:&quot;＜head＞タグにちょっと追加したい&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;＜head＞タグにちょっと追加したい&lt;/h2&gt;
&lt;p&gt;このページだけ、＜head＞タグのなかに記述を追加したい時がある。&lt;br&gt;
たとえば、metaタグを使いたいときなど。&lt;/p&gt;
&lt;p&gt;そんな時は、カレントディレクトリのレイアウトディレクトリに header.php を配置すると自動的に読み込む。&lt;/p&gt;
&lt;h4&gt;例．&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
ルートディレクトリ　─┬─　index.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　top.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　layout　───　default.php (1)
　　　　　　　　　　　│
　　　　　　　　　　　├─　css_default　───　default.css
　　　　　　　　　　　│
　　　　　　　　　　　└─　folder01　─┬─　test01.html
　　　　　　　　　　　　　　　　　　　　│
　　　　　　　　　　　　　　　　　　　　└─　layout　───　header.php (2)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;test01.html がリクエストされると、default.php (1) の＜head＞タグのなかに header.php (2) が挿入される。&lt;/p&gt;

&lt;p&gt;ただし、以下のレイアウトファイルのように、変数 $header を出力する必要あり（10行目）。&lt;/p&gt;

&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;
&lt;pre class=&quot;html-source-display&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;01:&lt;/span&gt; &amp;lt;!DOCTYPE html&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;02:&lt;/span&gt; &amp;lt;html lang=&amp;quot;ja&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;03:&lt;/span&gt; &amp;lt;head&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;04:&lt;/span&gt;     &amp;lt;meta charset=&amp;quot;&amp;lt;?= $charset ?&amp;gt;&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;05:&lt;/span&gt;     &amp;lt;base href=&amp;quot;&amp;lt;?= $pageUrlFull ?&amp;gt;&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;06:&lt;/span&gt;     &amp;lt;title&amp;gt;&amp;lt;?= $title ?&amp;gt;&amp;lt;/title&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;07:&lt;/span&gt;     &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?= $homeDir ?&amp;gt;/css_default/default.css&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;08:&lt;/span&gt;     &amp;lt;?= $css ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;09:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;10:&lt;/span&gt;     &amp;lt;?= $header ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;11:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;12:&lt;/span&gt; &amp;lt;/head&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;13:&lt;/span&gt; &amp;lt;body&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;14:&lt;/span&gt; &amp;lt;?= $contents ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;15:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;16:&lt;/span&gt; &amp;lt;/body&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;17:&lt;/span&gt; &amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/code&gt;
&lt;/div&gt;

</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>まずはレイアウトを作る</title><link>https://reachout.t-y4.com/documentation/manual/layout.html</link><description>&lt;!-- config_title:&quot;まずはレイアウトを作る&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;まずはレイアウトを作る&lt;/h2&gt;
&lt;p&gt;レイアウトファイルとは、HTMLファイルの外側の記述。&lt;br&gt;
各ページで共通に表示したい外枠の部分。&lt;/p&gt;
&lt;h4&gt;例．&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;
&lt;pre class=&quot;html-source-display&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;01:&lt;/span&gt; &amp;lt;!DOCTYPE html&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;02:&lt;/span&gt; &amp;lt;html lang=&amp;quot;ja&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;03:&lt;/span&gt; &amp;lt;head&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;04:&lt;/span&gt;     &amp;lt;meta charset=&amp;quot;&amp;lt;?= $charset ?&amp;gt;&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;05:&lt;/span&gt;     &amp;lt;base href=&amp;quot;&amp;lt;?= $pageUrlFull ?&amp;gt;&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;06:&lt;/span&gt;     &amp;lt;title&amp;gt;&amp;lt;?= $title ?&amp;gt;&amp;lt;/title&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;07:&lt;/span&gt;     &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?= $homeDir ?&amp;gt;/css_default/default.css&amp;quot;&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;08:&lt;/span&gt;     &amp;lt;?= $css ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;09:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;10:&lt;/span&gt;     &amp;lt;?= $header ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;11:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;12:&lt;/span&gt; &amp;lt;/head&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;13:&lt;/span&gt; &amp;lt;body&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;14:&lt;/span&gt; &amp;lt;?= $contents ?&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;15:&lt;/span&gt; 
&lt;span class=&quot;line-number&quot;&gt;16:&lt;/span&gt; &amp;lt;/body&amp;gt;
&lt;span class=&quot;line-number&quot;&gt;17:&lt;/span&gt; &amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;14行目の &lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$contents&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt; にコンテンツが流し込まれて表示される。&lt;br&gt;
この例では、1行目から13行目までと15行目から最後までが共通部分となる。&lt;/p&gt;
&lt;p&gt;このレイアウトファイルを共通化することにより、デザイン等の変更が簡単になる。&lt;/p&gt;
&lt;p&gt;そしてレイアウトファイルとCSSで自由にデザイン可能。&lt;/p&gt;
&lt;p&gt;注意）最低ひとつは、レイアウトファイルがないと動かない。&lt;/p&gt;
&lt;h3&gt;レイアウトファイルでよく使う変数&lt;/h3&gt;
&lt;p&gt;あらかじめよく使う変数を用意。以下がよく使う変数の一覧&lt;/p&gt;
&lt;p&gt;index.php を設置する場所を&lt;br&gt;
ルートの場合：https://www.hoge.com/ と仮定、&lt;br&gt;
サブディレクトリの場合：https://www.hoge.com/sub/ と仮定し、&lt;br&gt;
test.html がリクエストされた場合を例とした。&lt;/p&gt;
&lt;table&gt;
	&lt;tr&gt;
		&lt;th&gt;変数名&lt;/th&gt;
		&lt;th&gt;説明&lt;/th&gt;
		&lt;th&gt;ルートの場合&lt;/th&gt;
		&lt;th&gt;サブディレクトリの場合&lt;/th&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$charset&lt;/td&gt;
		&lt;td class=&quot;nowrap&quot;&gt;文字コード&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;UTF-8など&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;UTF-8など&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$pageUrlFull&lt;/td&gt;
		&lt;td&gt;表示されているファイルのURL&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;https://www.hoge.com/test.html&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;https://www.hoge.com/sub/test.html&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$title&lt;/td&gt;
		&lt;td class=&quot;nowrap&quot;&gt;タイトル&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$homeDir&lt;/td&gt;
		&lt;td class=&quot;nowrap&quot;&gt;ルートのディレクトリ&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;ブランク&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;/sub&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$css&lt;/td&gt;
		&lt;td&gt;カレントディレクトリのCSSファイルのタグが挿入される&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$header&lt;/td&gt;
		&lt;td&gt;カレントディレクトリのHEADERファイルが挿入される&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td class=&quot;nowrap&quot;&gt;$contents&lt;/td&gt;
		&lt;td&gt;リクエストされたファイルが挿入される&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
		&lt;td class=&quot;small&quot;&gt;&amp;nbsp;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;h3&gt;レイアウトファイルはディレクトリ単位に共通化できる&lt;/h3&gt;
&lt;p&gt;以下のようなファイル構造の場合、&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
ルートディレクトリ　─┬─　index.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　top.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　layout　───　default.php(1)
　　　　　　　　　　　│
　　　　　　　　　　　├─　folder01　─┬─　test01.html
　　　　　　　　　　　│　　　　　　　　│
　　　　　　　　　　　│　　　　　　　　├─　layout　───　default.php(2)
　　　　　　　　　　　│　　　　　　　　│
　　　　　　　　　　　│　　　　　　　　└─　sub_01　───　test02.html
　　　　　　　　　　　│
　　　　　　　　　　　└─　folder02　─┬─　test03.html
　　　　　　　　　　　　　　　　　　　　│
　　　　　　　　　　　　　　　　　　　　└─　sub_02　───　test04.html
&lt;/pre&gt;&lt;/div&gt;
&lt;ul&gt;
	&lt;li&gt;top.php のレイアウトは default.php(1)&lt;/li&gt;
	&lt;li&gt;test01.html のレイアウトは default.php(2)&lt;/li&gt;
	&lt;li&gt;test02.html のレイアウトは default.php(2)&lt;/li&gt;
	&lt;li&gt;test03.html のレイアウトは default.php(1)&lt;/li&gt;
	&lt;li&gt;test04.html のレイアウトは default.php(1)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;カレントディレクトリのレイアウトディレクトリにレイアウトファイルがあれば、それを使う。なければ親のディレクトリを探すようになっている。&lt;/p&gt;

</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>インストール手順</title><link>https://reachout.t-y4.com/documentation/install/index.html</link><description>&lt;!-- config_title:&quot;インストール手順&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;インストール手順&lt;/h2&gt;
&lt;h3&gt;１．スクリプトをGitHubからダウンロードする &gt;&gt; &lt;a href=&quot;https://github.com/ty4yoshi/reachout/releases/latest&quot;&gt;reachout&lt;/a&gt;&lt;/h3&gt;
&lt;h3&gt;２．ファイルを解凍後、env_sample.php をコピーして、ファイル名を env.php に変更&lt;/h3&gt;
&lt;h3&gt;３．env.php をエディタで開いて、定数（サイト名等）を変更&lt;/h3&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;pre&gt;
// ReachOut Framework Configuration

// スクリプト情報
define(&#039;SCRIPT_VER&#039;, &#039;0.2.1&#039;);
define(&#039;SCRIPT_MODIFIED&#039;, &#039;2026/03/11&#039;);
// ディレクトリ設定
define(&#039;DS&#039;, &#039;/&#039;);
define(&#039;LAYOUT_DIR&#039;, &#039;layout&#039;);
define(&#039;CSS_DIR&#039;, &#039;css&#039;);
define(&#039;CACHE_DIR&#039;, &#039;tmp&#039;);
// サイト設定
define(&#039;SITE_NAME&#039;, &#039;ReachOut - Framework For HTML&#039;);
define(&#039;TOP_PAGE&#039;, &#039;top.php&#039;);
define(&#039;LAYOUT_DEFAULT_FILE&#039;, &#039;default.php&#039;);
define(&#039;HEADER_FILE&#039;, &#039;header.php&#039;);
define(&#039;CHARSET&#039;, &#039;UTF-8&#039;);
define(&#039;HTTP&#039;, &#039;https://&#039;);
// CSSタグテンプレート
define(&#039;CSS_TAG&#039;, &#039;&lt;link rel=&quot;stylesheet&quot; href=&quot;%s&quot;&gt;&#039;);
// キャッシュ設定
define(&#039;CACHE_FLG&#039;, false);
define(&#039;CACHE_LIFE_TIME&#039;, 7200);
define(&#039;CACHE_STOP&#039;, false);
define(&#039;NO_CACHE_DIR&#039;, array(&#039;feed&#039;));
// ファイル設定
define(&#039;INDEX_FILES&#039;, array(&#039;index.html&#039;, &#039;index.php&#039;, &#039;index.htm&#039;));
define(&#039;NO_READ_FILES&#039;, array(&#039;env.php&#039;));
&lt;/pre&gt;&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;キャッシュを使う場合は、&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;CACHE_FLG を true する&lt;/li&gt;
	&lt;li&gt;CACHE_LIFE_TIME を 1 以上に設定する（7200 なら2時間）&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;４．サーバにアップロードする（ホスト名：https://www.hogehoge.com と仮定）&lt;/h3&gt;
&lt;h3&gt;５．.htaccess を以下のように記述して、index.php と同じ階層に置く&lt;/h3&gt;
&lt;div class=&quot;code&quot;&gt;&lt;pre&gt;
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.[^/\.]+$
RewriteRule .* %{REQUEST_URI}/ [L,R]
RewriteCond %{REQUEST_FILENAME} !^(.*)\.(gif|png|jpg|jpeg|css|js)$ [NC]
RewriteCond $1 !^(index\.php|images|css|js|old_source|robots\.txt)
RewriteRule ^(.*)$ index.php?file=$1 [L]
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;お好みで変えてみて&lt;/p&gt;
&lt;h4&gt;サブフォルダに設置する場合は（例．https://www.hogehoge.com/reach_out/）&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;&lt;pre&gt;
RewriteEngine on
RewriteBase /reach_out
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.[^/\.]+$
RewriteRule .* %{REQUEST_URI}/ [L,R]
RewriteCond %{REQUEST_FILENAME} !^(.*)\.(gif|png|jpg|jpeg|css|js)$ [NC]
RewriteCond $1 !^(index\.php|images|css|js|old_source|robots\.txt)
RewriteRule ^(.*)$ /reach_out/index.php?file=$1 [L]
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;６．レイアウトファイルを設置&lt;/h3&gt;
&lt;h4&gt;６－１．フォルダ layout を index.php と同じ階層に作成&lt;/h3&gt;
&lt;h4&gt;６－２．以下のような内容で、default.php というファイルを作成&lt;/h3&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;
&lt;pre class=&quot;html-source-display&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang=&amp;quot;ja&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset=&amp;quot;&amp;lt;?= $charset ?&amp;gt;&amp;quot;&amp;gt;
    &amp;lt;base href=&amp;quot;&amp;lt;?= $pageUrlFull ?&amp;gt;&amp;quot;&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;?= $title ?&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?= $homeDir ?&amp;gt;/css_default/default.css&amp;quot;&amp;gt;
    &amp;lt;?= $css ?&amp;gt;

    &amp;lt;?= $header ?&amp;gt;

&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;?= $contents ?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/code&gt;
&lt;/div&gt;
&lt;h4&gt;６－３．フォルダ layout の中にアップロード&lt;/h4&gt;
&lt;h3&gt;７．トップページを作成&lt;/h3&gt;
&lt;h4&gt;７－１．以下のような内容で、top.php というファイルを作成&lt;/h3&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
&lt;pre class=&quot;html-source-display&quot;&gt;&amp;lt;!-- config_title:&amp;quot;Home&amp;quot; --&amp;gt;
&amp;lt;!-- config_layout:&amp;quot;default.php&amp;quot; --&amp;gt;
&amp;lt;!-- config_br:&amp;quot;no&amp;quot; --&amp;gt;
これはトップページです。&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h4&gt;７－２．index.php と同じ階層にアップロード&lt;/h3&gt;
&lt;h3&gt;以上で終了、以下のような構造になる。&lt;/h3&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
ルートディレクトリ　─┬─　index.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　top.php
　　　　　　　　　　　│
　　　　　　　　　　　├─　env.php
　　　　　　　　　　　│
　　　　　　　　　　　└─　layout　───　default.php
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;https://www.hogehoge.com にブラウザでアクセスし、「これはトップページです。」と表示されれば成功&lt;/p&gt;
</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>ダウンロード</title><link>https://reachout.t-y4.com/downloads/index.html</link><description>&lt;!-- config_title:&quot;ダウンロード&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;ダウンロード&lt;/h2&gt;
&lt;p&gt;これはフリーソフトです。&lt;/p&gt;
&lt;p&gt;テキストエディタでウェブページを作っている方のお役にたつかも．．．。&lt;/p&gt;
&lt;p&gt;このソフトを利用した事によるいかなる損害も私は一切の責任を負いません。&lt;br /&gt;
自己の責任の上でどうぞ。&lt;/p&gt;
&lt;p&gt;ライセンスは、&lt;a href=&quot;http://www.opensource.org/licenses/bsd-license.php&quot;&gt;BSD&lt;/a&gt;です。&lt;/p&gt;

&lt;p&gt;ソースはGitHubにあります。GitHubからダウンロードしてください。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/ty4yoshi/reachout/releases/latest&quot;&gt;GitHub - reachout&lt;/a&gt;&lt;/p&gt;

&lt;a href=&quot;https://github.com/ty4yoshi/reachout/blob/master/UPDATE.md&quot;&gt;更新履歴&lt;/a&gt;
</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>あとはコンテンツを書く</title><link>https://reachout.t-y4.com/documentation/manual/contents.html</link><description>&lt;!-- config_title:&quot;あとはコンテンツを書く&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;あとはコンテンツを書く&lt;/h2&gt;
&lt;p&gt;レイアウトができたら。あとはコンテンツを書くだけ&lt;/p&gt;
&lt;h4&gt;例．&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
&amp;lt;!-- config_title:&amp;quot;コンテンツ&amp;quot; --&amp;gt;
&amp;lt;!-- config_layout:&amp;quot;default.php&amp;quot; --&amp;gt;
&amp;lt;!-- config_br:&amp;quot;no&amp;quot; --&amp;gt;
&amp;lt;p&amp;gt;これはコンテンツです。&amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;機能&lt;/h3&gt;
&lt;p&gt;少しだけ機能がある&lt;/p&gt;
&lt;p&gt;コンテンツに以下のコメントを書くとレイアウトに反映される&lt;/p&gt;
&lt;h4&gt;タイトル&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
&amp;lt;!-- config_title:&amp;quot;コンテンツ&amp;quot; --&amp;gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;このコメントのダブルクォーテーションで括られた文字が＜title＞タグに表示される。&lt;br&gt;この例では、タイトルが　コンテンツ　になる。&lt;/p&gt;
&lt;p&gt;このコメントは必ず入れた方がよい。&lt;/p&gt;
&lt;h4&gt;レイアウト&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
&amp;lt;!-- config_layout:&amp;quot;hogehoge.php&amp;quot; --&amp;gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;レイアウトファイルを指定できる。&lt;br&gt;
この例では、レイアウトファイル　hogehoge.php を使用してコンテンツを表示。&lt;/p&gt;
&lt;p&gt;初期値のレイアウトファイルを使う場合は、このコメントは必要ない。&lt;/p&gt;
&lt;h4&gt;改行をBRタグに変換&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre&gt;
&amp;lt;!-- config_br:&amp;quot;yes&amp;quot; --&amp;gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;上記のように書くと、改行をBRタグに変換する。&lt;/p&gt;
&lt;p&gt;初期値は no 。改行をBRタグに変換しない場合は、このコメントは必要ない。&lt;/p&gt;
&lt;h3&gt;PHPのスクリプトを埋め込み可能&lt;/h3&gt;
&lt;p&gt;どんなコンテンツファイルもPHPのスクリプトとして実行されるため、PHPのスクリプトを埋め込むことができる。&lt;/p&gt;
&lt;h4&gt;例．現在の日付を表示&lt;/h4&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&amp;lt;!--&amp;nbsp;config_title:&quot;コンテンツ&quot;&amp;nbsp;--&amp;gt;
&lt;br&gt;&amp;lt;p&amp;gt;これはコンテンツです。&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;lt;p&amp;gt;きょうは、&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Y-m-d&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&amp;nbsp;です。&amp;lt;/p&amp;gt;
&lt;br&gt;&lt;/span&gt;
&lt;/code&gt;
&lt;/div&gt;

</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>マニュアル</title><link>https://reachout.t-y4.com/documentation/manual/index.html</link><description>&lt;!-- config_title:&quot;マニュアル&quot; --&gt;
&lt;!-- config_rss:&quot;yes&quot; --&gt;
&lt;h2&gt;マニュアル　使い方&lt;/h2&gt;
&lt;h3&gt;概略&lt;/h3&gt;
&lt;p&gt;簡単言うと、ルートにスクリプトを設置し、あとはHTMLファイルをひたすら作成するだけ&lt;/p&gt;
&lt;h3&gt;目次&lt;/h3&gt;
</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
<item>
<title>RSS配信は手動</title><link>https://reachout.t-y4.com/documentation/manual/rss.html</link><description>
&lt;h2&gt;RSS配信は手動&lt;/h2&gt;
&lt;h3&gt;RSSを出力する機能が欲しい&lt;/h3&gt;
&lt;p&gt;このReachOutスクリプトにはRSS配信を自動生成する機能は今のところ無い。&lt;/p&gt;
&lt;p&gt;RSS配信を自動生成するには、どうすれば良いか考えた。&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;OSのfindコマンドで更新されたファイルを探す？&lt;/li&gt;
	&lt;li&gt;コンテンツの更新を覚える機能付ける（データベース？）&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;findコマンドはコンテンツ数が増えたら遅くなりそうなので却下。&lt;/p&gt;
&lt;p&gt;データベース機能は、機能てんこ盛りの入口になってしまう気がするので却下。&lt;/p&gt;
&lt;p&gt;なるべく楽したいと思い、gitを利用することにした。&lt;/p&gt;
</description>
<pubDate>Fri, 13 Mar 2026 16:41:00 +0900</pubDate>
</item>
</channel>
</rss>
