<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1710371682534699914</id><updated>2024-10-25T14:46:23.820+09:00</updated><category term="php"/><category term="住所録"/><category term="bbs"/><category term="mysql"/><category term="smarty"/><category term="formタグ"/><category term="symfony"/><category term="apache"/><category term="eclipse"/><category term="CentOS"/><category term="FizzBuzz"/><category term="db"/><category term="クラス"/><category term="セッション"/><category term="掲示板２"/><category term="県コード"/><category term="XML"/><category term="debug"/><category term="firefox"/><category term="gmail"/><category term="hosts"/><category term="mail"/><category term="sql"/><category term="削除"/><category term="2次元配列"/><category term="Criteria"/><category term="IDmanager"/><category term="SCC"/><category term="TLS"/><category term="VMware"/><category term="code"/><category term="escape"/><category term="evernote"/><category term="file"/><category term="firebug"/><category term="html"/><category term="mis"/><category term="path"/><category term="php.ini"/><category term="program"/><category term="putty"/><category term="seo"/><category term="table"/><category term="vi"/><category term="xampp"/><category term="はてな"/><category term="エンコード"/><category term="セキュリティ"/><category term="ソース"/><category term="テストデータ"/><category term="デバック"/><category term="ネットワーク"/><category term="ブログ"/><category term="ラジオボタン"/><category term="ランチャ"/><category term="九九"/><category term="楽天"/><category term="正規化"/><category term="正規表現"/><category term="連想配列"/><category term="配列"/><category term="関数"/><title type='text'>php講習の記録</title><subtitle type='html'>php(Web)講習の記録です。&#xa;php,MySQL,smartyとsymfony 1.0.20の記述があります。&#xa;開発環境はeclipse,xampp(php smarty)とlinux(CentOS,symfony)です。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>75</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-9171510017833756252</id><published>2011-03-28T17:29:00.004+09:00</published><updated>2011-06-14T08:43:24.320+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="db"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><category scheme="http://www.blogger.com/atom/ns#" term="掲示板２"/><title type='text'>symfonyで掲示板作成、criteria</title><content type='html'>php講習 3/28&lt;br /&gt;
&lt;br /&gt;
天気が良いので外は気持ちいい。&lt;br /&gt;
しかし、花粉が心配。&lt;br /&gt;
&lt;br /&gt;
１時間目&lt;br /&gt;
・先週の復習&lt;br /&gt;
&amp;nbsp; criteria&lt;br /&gt;
・symfony、「モデルによるCRUD」から&lt;br /&gt;
&amp;nbsp; Webアプリでは、DB操作で下記４つの機能で実現できます。&lt;br /&gt;
&amp;nbsp; Create&lt;br /&gt;
&amp;nbsp; Read&lt;br /&gt;
&amp;nbsp; Update&lt;br /&gt;
&amp;nbsp; Delete&lt;br /&gt;
&lt;br /&gt;
・モデルでの書き方&lt;br /&gt;
memberの場合、IDとcreated_atは記述しない。モデルで自動的にセットする。&lt;br /&gt;
・action.class.phpで記述をして、アクセスし、データがinsertされることを確認する。&lt;br /&gt;
・commentテーブルでも同様の記述を行い、データがinsertされることを確認する。&lt;br /&gt;
&lt;br /&gt;
２時間目&lt;br /&gt;
・insert,delete&lt;br /&gt;
・オブジェクトを使ってDBを操作、ORマッピング&lt;br /&gt;
Web開発の現場では、SQLは使わずORマッピングで開発しています。&lt;br /&gt;
&lt;br /&gt;
・以上の使い方に慣れる&lt;br /&gt;
member_addモジュールを作成。&lt;br /&gt;
$ symfony init-module front member_add&lt;br /&gt;
insert,confirm,resultアクション作成。&lt;br /&gt;
inputSuccess.php&lt;br /&gt;
confirmSuccess.php&lt;br /&gt;
resultSuccess.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
３時間目&lt;br /&gt;
・午前の答え合わせ&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;class member_addActions extends sfActions
{
 public function executeInput()
 {
  return sfView::SUCCESS;
 }
 public function executeConfirm()
 {
  //  パラメータで受け取る
  $this-&amp;gt;nickname  = $this-&amp;gt;getRequestParameter(&#39;nickname&#39;) ;
  $this-&amp;gt;mailaddress  = $this-&amp;gt;getRequestParameter(&#39;mailaddress&#39;) ;
  return sfView::SUCCESS;
 }
 public function executeResult()
 {
  //  パラメータで受け取る
  $nickname  = $this-&amp;gt;getRequestParameter(&#39;nickname&#39;) ;
  $mailaddress  = $this-&amp;gt;getRequestParameter(&#39;mailaddress&#39;) ;
  // symfonyでモデルの書き方(CRUD:insert)
  // まず、空の行を作る
  $member = new Member();
  // データをセットする
  $member-&amp;gt;setNickname($nickname) ;
  $member-&amp;gt;setMailaddress($mailaddress);
  // 保存する
  $member-&amp;gt;save();
  return sfView::SUCCESS;
 }
}
&lt;/pre&gt;・今やっているところは、アプリケーション名、モジュール名（アクション名）の関係が&lt;br /&gt;
わかるようになって下さい。&lt;br /&gt;
・会員一覧ページを作る（app:member_list/index）&lt;br /&gt;
一覧表はfrontモジュールのincexアクションと同じことをやっているので参考にして下さい。&lt;br /&gt;
$ symfony init-module front member_list&lt;br /&gt;
・編集ボタンで編集できるようにする。（app:member_edit）&lt;br /&gt;
$ symfony init-module front member_edit&lt;br /&gt;
indexSuccess.php&lt;br /&gt;
・編集用アクションinput,confirm,resultを作成する。&lt;br /&gt;
inputSuccess.php&lt;br /&gt;
confirmSuccess.php&lt;br /&gt;
resultSuccess.php&lt;br /&gt;
&lt;br /&gt;
４時間目&lt;br /&gt;
・答え合わせ&lt;br /&gt;
&lt;br /&gt;
５時間目&lt;br /&gt;
・答え合わせ、member_list/indexSuccess.php&lt;br /&gt;
&lt;br /&gt;
６時間目&lt;br /&gt;
・答え合わせ、member_edit/inputSuccess.php,confirmSuccess.php,resultSuccess.php&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;public function executeInput()
 {
  $id = $this-&amp;gt;getRequestParameter(&#39;id&#39;) ;
  $this-&amp;gt;member = MemberPeer::retrieveByPK($id) ;
  return sfView::SUCCESS;
 }

 public function executeConfirm()
 {
  $this-&amp;gt;id          = $this-&amp;gt;getRequestParameter(&#39;id&#39;) ;
  $this-&amp;gt;nickname    = $this-&amp;gt;getRequestParameter(&#39;nickname&#39;) ;
  $this-&amp;gt;mailaddress = $this-&amp;gt;getRequestParameter(&#39;mailaddress&#39;) ;
  return sfView::SUCCESS;
 }

 public function executeResult()
 {
  //  パラメータで受け取る
  $id          = $this-&amp;gt;getRequestParameter(&#39;id&#39;) ;
  $nickname    = $this-&amp;gt;getRequestParameter(&#39;nickname&#39;) ;
  $mailaddress = $this-&amp;gt;getRequestParameter(&#39;mailaddress&#39;) ;
  // 更新したい行（オブジェクト）をまず取得する
  $member = MemberPeer::retrieveByPK($id) ;
  $member-&amp;gt;setNickname($nickname) ;
  $member-&amp;gt;setMailaddress($mailaddress);
  // 保存する
  $member-&amp;gt;save();
  return sfView::SUCCESS;
 }
&lt;/pre&gt;&lt;br /&gt;
・一覧画面に削除リンクを付け、削除処理を追加する。&lt;br /&gt;
モジュールはmember_list&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;public function executeDelete()
 {
  // DBアクセス
  $id = $this-&amp;gt;getRequestParameter(&#39;id&#39;) ;
  $member = MemberPeer::retrieveByPK($id) ;
  // データを削除する(一度削除するともうないので判断を入れる)
  if ($member) {
   $member-&amp;gt;delete();
  }
  return sfView::SUCCESS;
 }
&lt;/pre&gt;&lt;br /&gt;
・明日はdeleteを解説&lt;br /&gt;
・今日やったところであやふやな部分がある人はモジュールをlinux上でリネームして&lt;br /&gt;
復習をして下さい。&lt;br /&gt;
（eclipseでリネームすると文字化けすることがあるのでlinux上でリネームする）</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/9171510017833756252/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/328.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/9171510017833756252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/9171510017833756252'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/328.html' title='symfonyで掲示板作成、criteria'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-3104581167593163223</id><published>2011-03-25T17:31:00.008+09:00</published><updated>2011-06-14T08:41:22.039+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Criteria"/><category scheme="http://www.blogger.com/atom/ns#" term="db"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><category scheme="http://www.blogger.com/atom/ns#" term="掲示板２"/><title type='text'>symfonyで掲示板作成(復習)</title><content type='html'>php講習 3/25&lt;br /&gt;
&lt;br /&gt;
・作業の前に&lt;br /&gt;
vmwareを起動し、linux（CentOS）を立ち上げる&lt;br /&gt;
puttyでlinuxに一般ユーザでログイン、プロジェクトのディレクトリに移動&lt;br /&gt;
eclipseを起動&lt;br /&gt;
ブラウザを起動、Webテキストを開いておく&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1時間目 &lt;br /&gt;
今日、午前中は昨日の復習&lt;br /&gt;
プロジェクトbbs2のディレクトリをバックアップ(bk.bbs2)&lt;br /&gt;
ディレクトリbbs2作成&lt;br /&gt;
（１）プロジェクト作成&lt;br /&gt;
symfony init-project bbs2&lt;br /&gt;
&lt;br /&gt;
（２）アプリケーション作成&lt;br /&gt;
$ symfony init-app front&lt;br /&gt;
$ symfony init-app backend&lt;br /&gt;
$ symfony init-app mypage&lt;br /&gt;
&lt;br /&gt;
（３）各アプリケーションにデフォルトモジュール作成、アクセス確認&lt;br /&gt;
$ symfony init-module front default&lt;br /&gt;
$ symfony init-module backend default&lt;br /&gt;
$ symfony init-module mypage default&lt;br /&gt;
・アクセスで使うviewアクションを指定&lt;br /&gt;
/bbs2/apps/front/modules/default/actions/actions.class.php&lt;br /&gt;
/bbs2/apps/front/modules/default/templates/indexSuccess.php&lt;br /&gt;
/bbs2/apps/backend/modules/default/actions/actions.class.php&lt;br /&gt;
/bbs2/apps/backend/modules/default/templates/indexSuccess.php&lt;br /&gt;
/bbs2/apps/mypage/modules/default/actions/actions.class.php&lt;br /&gt;
/bbs2/apps/mypage/modules/default/templates/indexSuccess.php&lt;br /&gt;
&lt;br /&gt;
（４）backend,mypage各ページに/区切りのURLでアクセス&lt;br /&gt;
・アクセスパスの調整&lt;br /&gt;
使ったコマンドは、実行の順番に並んでいないので注意！&lt;br /&gt;
$ mkdir backend&lt;br /&gt;
$ mkdir mypage&lt;br /&gt;
$ mv backend.php backend_dev.php backend&lt;br /&gt;
$ mv mypage.php mypage_dev.php mypage&lt;br /&gt;
$ cp .htaccess backend&lt;br /&gt;
$ cp .htaccess mypage&lt;br /&gt;
$ cd backend/&lt;br /&gt;
$ cd mypage/&lt;br /&gt;
&lt;br /&gt;
$ vi .htaccess&lt;br /&gt;
$ vi backend.php&lt;br /&gt;
$ vi .htaccess&lt;br /&gt;
$ vi mypage.php&lt;br /&gt;
&lt;br /&gt;
（５）レイアウトを昨日のソースを参照して作る。&lt;br /&gt;
Viewの説明&lt;br /&gt;
「レイアウトテンプレート」＋「アクションで作成されるテンプレート」の組み合わせである&lt;br /&gt;
レイアウト&lt;br /&gt;
/bbs2/apps/front/templates/layout.php&lt;br /&gt;
CSS&lt;br /&gt;
/web/css/main.css&lt;br /&gt;
設定変更を反映する&lt;br /&gt;
$ symfony cc&lt;br /&gt;
・レイアウトとスタイルはメールで送付します。&lt;br /&gt;
&lt;br /&gt;
（６）DBのアクセス情報を設定する&lt;br /&gt;
・DB定義&lt;br /&gt;
/bbs2/config/databases.yml&lt;br /&gt;
/bbs2/config/propel.ini&lt;br /&gt;
&lt;br /&gt;
・schema.ymlを作成する&lt;br /&gt;
$ symfony propel-build-schema&lt;br /&gt;
&lt;br /&gt;
・モデルファイルを作成する&lt;br /&gt;
$ symfony propel-build-model&lt;br /&gt;
bbs2/lib/modelにモデルファイルが作成されている&lt;br /&gt;
&lt;br /&gt;
・DBアクセスし確認する&lt;br /&gt;
PHPファイル&lt;br /&gt;
$this-&amp;gt;member = MemberPeer::retrieveByPk(1);&lt;br /&gt;
テンプレートファイル&lt;br /&gt;
&amp;lt;?php print $member-&amp;gt;getNickname();?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
・URLとモジュール/アクションの関係は理解していないと先に進んだとき&lt;br /&gt;
何処を修正したら良いか分からなくなります。&lt;br /&gt;
・フロントコントローラ&lt;br /&gt;
アクセスがあったとき、どのモジュールに処理を渡すかコントロールする部分&lt;br /&gt;
&lt;br /&gt;
２時間目&lt;br /&gt;
・引き続き課題&lt;br /&gt;
・答え合わせ&lt;br /&gt;
&lt;br /&gt;
３時間目&lt;br /&gt;
・答え合わせ、続き&lt;br /&gt;
&lt;br /&gt;
４時間目&lt;br /&gt;
・答え合わせ、続き、DB接続から&lt;br /&gt;
symfonyの関数名、大文字で書かないとエラーになるところとエラーにならないところがある。&lt;br /&gt;
これは、覚える以外にない。&lt;br /&gt;
&lt;br /&gt;
・エラーがでたとき、以下にアクセスして確認&lt;br /&gt;
/front_dev.php&lt;br /&gt;
&lt;br /&gt;
・画面の画像が化けるとき&lt;br /&gt;
symfony設定ファイルのシンボリックリンクを作成&lt;br /&gt;
/usr/share/pear/data/symfony/web/sfフォルダが/home/teacher/bbs2/web/sfで参照できるようシンボリックリンクを貼る&lt;br /&gt;
$ cd /home/teacher/bbs2/web/&lt;br /&gt;
$ ln -s /usr/share/pear/data/symfony/web/sf ./sf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
・backend（mypage）にも設定&lt;br /&gt;
backend_dev.phpのパスも修正&lt;br /&gt;
$ ln -s ../sf ./sf&lt;br /&gt;
&lt;br /&gt;
・本番環境で、リリースする場合は、_devは削除しておく。&lt;br /&gt;
残してあるとセキュリティホールになります。&lt;br /&gt;
&lt;br /&gt;
５時間目&lt;br /&gt;
・&lt;a href=&quot;http://www.google.co.jp/url?sa=t&amp;amp;source=web&amp;amp;cd=2&amp;amp;ved=0CCAQFjAB&amp;amp;url=http%3A%2F%2Fwww.nextren-development.com%2Fsymfuldaze%2Fcriteria%2Fwhats_peer&amp;amp;ei=ADmMTbC3IYKKvQOsory4DQ&amp;amp;usg=AFQjCNEBZ3Tv_9HOgma0MszNUX8-JQQ_2g&amp;amp;sig2=OK59Wpph3IIiSHrQMQVkNw&quot;&gt;Peer&lt;/a&gt;でアクセス&lt;br /&gt;
・&lt;a href=&quot;http://symfony.xrea.jp/1.0/book/08-Inside-the-Model-Layer.html#retrieving.records.with.criteria&quot;&gt;Criteria(クライテリア)&lt;/a&gt;による条件指定&lt;br /&gt;
SQLでDBに問い合わせをするとき条件は、where句を使用していました。&lt;br /&gt;
Criteria基準&lt;br /&gt;
$c = new Criteria();&lt;br /&gt;
$c-&amp;gt;add(テーブル名Peer::カラム大文字, 指定する値)&lt;br /&gt;
&lt;br /&gt;
$c = new Criteria();&lt;br /&gt;
$c-&amp;gt;add(MemberPeer::ID, 1)&lt;br /&gt;
条件を複数指定可能&lt;br /&gt;
全てのデータを取得したい場合、条件を空にする。&lt;br /&gt;
$member = MemberPeer::doSelect($c);&lt;br /&gt;
doSelectは配列でデータを受け取る。&lt;br /&gt;
・テンプレート側&lt;br /&gt;
&amp;lt;?php foreach ($members as $member):?&amp;gt;&lt;br /&gt;
&amp;lt;?php print $member-&amp;gt;getNickname();?&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;?php endforeach;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
foreach でmembersとmemberの書き方も習慣として書く&lt;br /&gt;
・ニックネームとメールアドレスを表示し、テーブルタグにする&lt;br /&gt;
テーブルタグは書けるようになっておいて下さい。&lt;br /&gt;
・memberができたら、commentテーブルも表示して下さい。&lt;br /&gt;
&lt;br /&gt;
６時間目&lt;br /&gt;
・条件設定&lt;br /&gt;
カラム名は大文字で記述する。&lt;br /&gt;
&lt;br /&gt;
複数条件の指定&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;$c = new Criteria();
$c1 = $c-&amp;gt;getNewCriterion(MemberPeer::CREATED_AT, &quot;2011/01/10&quot; ,Criteria::GREATER_THAN);
$c2 = $c-&amp;gt;getNewCriterion(MemberPeer::NICKNAME, &quot;%wata2%&quot; ,Criteria::LIKE);
$c1-&amp;gt;addOr($c2);
$c-&amp;gt;add($c1);
$this-&amp;gt;member = MemberPeer::doSelect($c);
&lt;/pre&gt;・複数条件しては、orのときしか使わない、andのときはほとんど使わない。</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/3104581167593163223/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/225.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/3104581167593163223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/3104581167593163223'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/225.html' title='symfonyで掲示板作成(復習)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-7031124945964620630</id><published>2011-03-24T20:51:00.005+09:00</published><updated>2011-06-14T08:39:33.458+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="db"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><category scheme="http://www.blogger.com/atom/ns#" term="掲示板２"/><title type='text'>symfonyで掲示板作成</title><content type='html'>php講習 3/24&lt;br /&gt;
&lt;br /&gt;
今日も外の掃除は寒かった。&lt;br /&gt;
&lt;br /&gt;
1時間目&lt;br /&gt;
・昨日の復習&lt;br /&gt;
プロジェクトの確認&lt;br /&gt;
アプリケーションの確認&lt;br /&gt;
プロジェクト直下でモジュール作成&lt;br /&gt;
フォルダ構成の確認&lt;br /&gt;
&lt;br /&gt;
・eclipse,phpソースの整形方法(便利) &lt;br /&gt;
Ctr + Shift + F&lt;br /&gt;
&lt;br /&gt;
・昨日の課題の答え合わせ&lt;br /&gt;
アクション(action.class.php)&lt;br /&gt;
テンプレート(inputSuccess.php,confirmSuccess.php,resultSuccess.php)&lt;br /&gt;
&lt;br /&gt;
2時間目&lt;br /&gt;
・続き、テンプレート（confirmSuccess.php）&lt;br /&gt;
&lt;br /&gt;
・入力画面にメールアドレス（mailaddress）を追加し、完了画面まで渡す。（作業時間１０分で）&lt;br /&gt;
アクション(action.class.php)&lt;br /&gt;
テンプレート(inputSuccess.php,confirmSuccess.php)&lt;br /&gt;
&lt;br /&gt;
・今回の作業であやしい人は、新しい変数を追加して手順を確認する。&lt;br /&gt;
&lt;br /&gt;
・昨日は、bbs2プロジェクトで、frontアプリケーションを作った&lt;br /&gt;
URLとモジュール、アクションの関係&lt;br /&gt;
&lt;br /&gt;
正しくは、http://ドメイン名/アプリケーションのフロントコントローラ名/モジュール名/アクション名&lt;br /&gt;
一番最初に作成したフロントコントローラ名は省略可能&lt;br /&gt;
&lt;br /&gt;
/bbs2/web/index.php&lt;br /&gt;
アプリケーションのフロントコントローラ&lt;br /&gt;
（全てのリクエストを受け取るところ）&lt;br /&gt;
&lt;br /&gt;
・バックエンドアプリケーション(backend)作成&lt;br /&gt;
プロジェクト直下へ&lt;br /&gt;
symfony init-app backend&lt;br /&gt;
管理機能画面&lt;br /&gt;
アプリケーションごと(backend)のリクエストを受け取るフロントコントローラは、backend.php&lt;br /&gt;
&lt;br /&gt;
・デフォルトモジュール作成&lt;br /&gt;
symfony init-module backend default&lt;br /&gt;
結果を確認&lt;br /&gt;
&lt;br /&gt;
・バックエンドの機能確認&lt;br /&gt;
&lt;br /&gt;
http://ドメイン名/アプリケーションのフロントコントローラ名/モジュール名/アクション名&lt;br /&gt;
backend.php/default/index&lt;br /&gt;
業界として、phpが付くのはかっこ良くない。&lt;br /&gt;
ここをbackendでアクセスできるようになる。設定と説明は午後。&lt;br /&gt;
&lt;br /&gt;
３時間目&lt;br /&gt;
最初に作ったアプリケーションのモジュールにアクセスするときだけ、&lt;br /&gt;
フロントコントローラ名は省略出来ます。&lt;br /&gt;
２番目以降に作ったものは省略出来ません。&lt;br /&gt;
（backendは省略出来ません）&lt;br /&gt;
&lt;br /&gt;
・backend.phpをbackendにする作業は、&lt;br /&gt;
今後アプリケーションを追加するときその都度作業するので忘れないように。&lt;br /&gt;
・アプリケーション名のディレクトリを作成&lt;br /&gt;
cd bbs2/web&lt;br /&gt;
mkdir backend&lt;br /&gt;
mv backend.php backend_dev.php ./backend&lt;br /&gt;
cp .htaccess ./backend&lt;br /&gt;
&lt;br /&gt;
apacheの設定ファイルを変更&lt;br /&gt;
vi .htaccessで以下の２行を修正&lt;br /&gt;
&amp;nbsp; RewriteBase /&lt;br /&gt;
&amp;nbsp; RewriteRule ^(.*)$ /backend/backend.php [QSA,L]&lt;br /&gt;
&lt;br /&gt;
パスを変更&lt;br /&gt;
backend.phpを修正&lt;br /&gt;
define(&#39;SF_ROOT_DIR&#39;,&amp;nbsp;&amp;nbsp;&amp;nbsp; realpath(dirname(__FILE__).&#39;/../..&#39;));&lt;br /&gt;
スタイルシートへのパスが切れているので、文字のサイズは変わった。&lt;br /&gt;
&lt;br /&gt;
・アプリケーションを作成&lt;br /&gt;
・デフォルトモジュールを作成&lt;br /&gt;
・フロントモジュールでアクセス出来ることを確認&lt;br /&gt;
・設定を変更し、アプリケーション名でアクセス出来ることを確認する。&lt;br /&gt;
&lt;br /&gt;
・アプリケーションを作成&lt;br /&gt;
symfony init-app backend&lt;br /&gt;
symfony init-app mypage&lt;br /&gt;
&lt;br /&gt;
・デフォルトモジュールを作成&lt;br /&gt;
symfony init-module backend default&lt;br /&gt;
symfony init-module mypage default&lt;br /&gt;
&lt;br /&gt;
・フロントモジュールでアクセス出来ることを確認&lt;br /&gt;
まず、アクションで出力&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;backend&quot; ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return sfView::SUCCESS;&lt;br /&gt;
次に、URLでアクセス&lt;br /&gt;
&lt;br /&gt;
・設定を変更し、アプリケーション名でアクセス出来ることを確認する。&lt;br /&gt;
ディレクトリを作成し移動と、コピー&lt;br /&gt;
アクセスのための設定変更対象&lt;br /&gt;
.htaccess&lt;br /&gt;
backend.php&lt;br /&gt;
&lt;br /&gt;
・出来た人は、別のアプリケーション(mypage)を作成して同じ作業を行う。&lt;br /&gt;
アクセス出来ないときは、ブラウザを一度閉じてから開くとアクセス出来ることがある。&lt;br /&gt;
&lt;br /&gt;
4時間目&lt;br /&gt;
・作業をmypageで実施。&lt;br /&gt;
・作業手順があやふやな人は、アプリケーション、モジュールを作って作業をやってみる。&lt;br /&gt;
&lt;br /&gt;
・会員登録のリンク&lt;br /&gt;
&amp;lt;a href=&quot;/member_add/input&quot;&amp;gt;会員登録&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
・layout.phpの説明&lt;br /&gt;
&amp;lt;head&amp;gt;タグの内容は記述されていないが、以下のファイルで修正可能&lt;br /&gt;
設定ファイルを修正したら、コマンドを実行&lt;br /&gt;
symfony cc&lt;br /&gt;
&amp;nbsp; →変更が反映されなかった&lt;br /&gt;
&amp;gt;&amp;gt; file-&amp;nbsp; Permission denied in /usr/share/pear/symfony/vendor/pake/pakeFunction.php on line 197&lt;br /&gt;
# chomod 777 -R front&lt;br /&gt;
symfony ccをrootで実行すると権限がおかしくなることがあるらしい。&lt;br /&gt;
&lt;br /&gt;
５時間目&lt;br /&gt;
keywords 検索エンジンで引くキーワード、カンマ区切り&lt;br /&gt;
個別に行うときは、部品化、もしくは、viewから削除&lt;br /&gt;
&lt;br /&gt;
スタイルシートの指定も可能&lt;br /&gt;
デフォルトはmain /web/css/main.css&lt;br /&gt;
複数指定は、カンマ区切り&lt;br /&gt;
javascriptはいまは何もしない。&lt;br /&gt;
haslayout レイアウトを使わない設定も可能。&lt;br /&gt;
複数のレイアウトを使う設定も可能。</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/7031124945964620630/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/324.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7031124945964620630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7031124945964620630'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/324.html' title='symfonyで掲示板作成'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-4395168806284095373</id><published>2011-03-23T17:31:00.006+09:00</published><updated>2011-06-14T07:34:50.262+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><title type='text'>symfony概要説明</title><content type='html'>php講習 3/23&lt;br /&gt;
&lt;br /&gt;
・今日は、外の掃除。意外と寒い。&lt;br /&gt;
&lt;br /&gt;
１時間目&lt;br /&gt;
・昨日の復習から&lt;br /&gt;
Webテキストに従って、symfonyの概要説明&lt;br /&gt;
プロジェクト、アプリケーション作成&lt;br /&gt;
phpプログラムを変更して表示出来るようにした。&lt;br /&gt;
&lt;br /&gt;
・linuxで作業するときは、自分のいるところ（フォルダ）を認識しておく&lt;br /&gt;
$ pwd&lt;br /&gt;
/home/user/bbs2/apps/front&lt;br /&gt;
&lt;br /&gt;
・モジュールは、modulesディレクトリに入っています。&lt;br /&gt;
defaultモジュールを確認する。&lt;br /&gt;
&lt;br /&gt;
・プロジェクト直下（bbs2直下）に移動&lt;br /&gt;
&amp;nbsp; 一度、front以下を削除&lt;br /&gt;
&amp;nbsp; 再度、frontアプリケーションを作成&lt;br /&gt;
&amp;nbsp; $ symfony init-app front&lt;br /&gt;
&amp;nbsp; defaultモジュール作成&lt;br /&gt;
&amp;nbsp; $ symfony init-module front default&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
２時間目&lt;br /&gt;
・「actions.class.php」は処理を書くところ、アクションの説明はあとで&lt;br /&gt;
/home/teacher/bbs2/apps/front/modules/default/actions/actions.class.php&lt;br /&gt;
記述を修正&lt;br /&gt;
関数executeIndex()の「execute」を除いた部分がアクション名(index)&lt;br /&gt;
return sfView::SUCCESS;&lt;br /&gt;
→テンプレートでindexSuccess.phpを使う。&lt;br /&gt;
&lt;br /&gt;
・アクションの説明&lt;br /&gt;
データベース操作(CRUD)&lt;br /&gt;
create&lt;br /&gt;
read&lt;br /&gt;
update&lt;br /&gt;
delete&lt;br /&gt;
&lt;br /&gt;
・アクションの機能&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 1. リクエストパラメータ(GETやPOSTで渡ってくる値)の取得&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 2. モデルを使用したデータベース操作(CRUD)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 3. viewに渡す変数のアサイン&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 4. テンプレートの種類の決定&lt;br /&gt;
smartyで3の機能は使ったし、4のテンプレートも使っています。&lt;br /&gt;
&lt;br /&gt;
1.リクエストパラメータの取得&lt;br /&gt;
・getでurlから渡す方法&lt;br /&gt;
http://www.user.com/?id=20&lt;br /&gt;
print $this-&amp;gt;getRequestParameter(&#39;id&#39;);&lt;br /&gt;
パラメータをテンプレートに渡す&lt;br /&gt;
（Webテキストはスペルが違っているのでコピーするときは注意）&lt;br /&gt;
&lt;br /&gt;
・URLでパラメータを設定し、テンプレートに渡す&lt;br /&gt;
http://www.user.com/?name=name&amp;amp;adr=pref&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
３時間目&lt;br /&gt;
・２時間目の答え合わせ（アクションで受け取る、テンプレートに渡す）&lt;br /&gt;
・POSTで渡せるようフォームを作成&lt;br /&gt;
フォームのタグは問題なく書けるようになっておいて下さい。&lt;br /&gt;
→今日の最後の課題で実際使いました。 &lt;br /&gt;
&lt;br /&gt;
1.リクエストパラメータの取得&lt;br /&gt;
3:viewに渡す変数のアサイン&lt;br /&gt;
&lt;br /&gt;
4:テンプレートの種類の決定&lt;br /&gt;
「sfView::SUCCESS」以外のアクションの種類はあまり使わない。&lt;br /&gt;
基本的には、「sfView::SUCCESS」をreturnする。&lt;br /&gt;
&lt;br /&gt;
return sfView::XXXXX　（SUCCESS）アクション名 + ビューの種類.php（例 indexSuccess.php）&lt;br /&gt;
&lt;br /&gt;
アクションを追加して動きを確認する&lt;br /&gt;
executeNews()&lt;br /&gt;
executeArticle()&lt;br /&gt;
&lt;br /&gt;
テンプレートも追加&lt;br /&gt;
newsSuccess.php&lt;br /&gt;
articleSuccess.php&lt;br /&gt;
&lt;br /&gt;
呼び出し&lt;br /&gt;
ドメイン名 + /default（モジュール名）/action名&lt;br /&gt;
何もなしだと、/default/indexアクションに飛ぶ&lt;br /&gt;
それ以外だと、指定（/モジュール名/アクション名）が必要&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
４時間目&lt;br /&gt;
・URLとモジュール/アクション/関数名の関係は重要です。&lt;br /&gt;
（これが今日の授業のポイントです） &lt;br /&gt;
・アクションを５個新たに作成して表示する。&lt;br /&gt;
・blogモジュールを追加して、indexアクションから表示する。&lt;br /&gt;
&lt;br /&gt;
・フォームのモジュール名、アクション名を指定してパラメータを受け渡す。&lt;br /&gt;
フォームの飛び先は（ドメイン名+）/モジュール名/アクション名 &lt;br /&gt;
&lt;br /&gt;
５時間目&lt;br /&gt;
・Viewの説明&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 1. 「レイアウトテンプレート」＋「アクションで作成されるテンプレート」の組み合わせである&lt;br /&gt;
→これから説明&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 2. HTMLの記述や、処理を簡略化するためのヘルパーという機能が使える&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 　　→ヘルパーの項目で説明（明日以降？）&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 3. 共通で使うViewを部品化できる(パーシャル、スロット、コンポーネント)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 　　→別の機会に説明（明日以降？）&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 4. テンプレートには素のPHPを記述できる&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 　　→いままで作業してきた通り。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 　　　smartyのように特殊な書き方はありません。&lt;br /&gt;
&lt;br /&gt;
・Webで表示されたsymfonyページのソースを参照（ctr+U）&lt;br /&gt;
テンプレートの記述にあるソース(indexSuccess.php)と比較する。&lt;br /&gt;
bodyタグ以外の部分の記述は、以下のファイルに記述（アプリケーション共通部分）&lt;br /&gt;
apps/front/templates/layout.php&lt;br /&gt;
アプリケーション共通部分以外は、以下に入る。&lt;br /&gt;
&amp;lt;?php echo $sf_data-&amp;gt;getRaw(&#39;sf_content&#39;) ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
・CSSの記述&lt;br /&gt;
&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;/css/main.css&quot; /&amp;gt;&lt;br /&gt;
symfonyのcssはプロジェクト直下にある。&lt;br /&gt;
web/css/main.css&lt;br /&gt;
&lt;br /&gt;
・CSSの解説&lt;br /&gt;
idはページ内に１つだけ&lt;br /&gt;
クラスは、同じページに何個あってもいい&lt;br /&gt;
headerの場合、ページ内にheaderを記述するのは１回のみなのでIDで設定。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
６時間目&lt;br /&gt;
CSSを別（main.css）に記述&lt;br /&gt;
layout.phpで、HTMLの可読性が上がっていることがわかる。&lt;br /&gt;
&lt;br /&gt;
・今日最後の課題：member_add modを作成し、アクション３個設定&lt;br /&gt;
input、confirm、resultアクションを作成&lt;br /&gt;
$ symfony init-module front member_add&lt;br /&gt;
&lt;br /&gt;
・機能&lt;br /&gt;
名前入力 →postで名前を渡す&lt;br /&gt;
確認画面 →post（hidden）で名前を渡す&lt;br /&gt;
完了画面&lt;br /&gt;
&lt;br /&gt;
・出来たら、メニューの下に「会員登録」でリンクを張る&lt;br /&gt;
リンク先は、ドメイン名+/モジュール名/アクション名（/member_add/input）&lt;br /&gt;
・解説は明日</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/4395168806284095373/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/323.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/4395168806284095373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/4395168806284095373'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/323.html' title='symfony概要説明'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-6568775238427545593</id><published>2011-03-22T17:11:00.009+09:00</published><updated>2011-06-14T07:31:14.115+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><title type='text'>symfony入門</title><content type='html'>php講習 3/22&lt;br /&gt;
&lt;br /&gt;
久々の授業でしたが、雨で掃除はありませんでした。 &lt;br /&gt;
&lt;br /&gt;
今日は、節電のため電車の暖房が無くとても寒かった。&lt;br /&gt;
&lt;br /&gt;
１時間目&lt;br /&gt;
・VMWareにてCentOS起動&lt;br /&gt;
puttyにでログイン&lt;br /&gt;
&lt;br /&gt;
・symfonyは、１ｹ月位は（慣れるまで）何をやっているか分からない状態が続きます。&lt;br /&gt;
なれれば、通常のPHPに戻るのが面倒になるくらいになります。&lt;br /&gt;
&lt;br /&gt;
・停電のときのために、Webテキストをローカル環境に作成する。&lt;br /&gt;
まず、デスクトップにkikinフォルダをコピー&lt;br /&gt;
&lt;br /&gt;
・symfony環境（テキスト環境）のためユーザ追加 kikin&lt;br /&gt;
# useradd&amp;nbsp; kikin&lt;br /&gt;
# passwd&amp;nbsp;&amp;nbsp; kikin&lt;br /&gt;
&lt;br /&gt;
・ffftpで、kikinユーザでログイン&lt;br /&gt;
&amp;nbsp; ffftpには新規接続設定を追加&lt;br /&gt;
kikinフォルダのデータ（内容）を/home/kikinにコピー&lt;br /&gt;
&lt;br /&gt;
・設定変更、バーチャルホストの設定を説明&lt;br /&gt;
（/xampp/apach/conf/extra/httpd/v-hosts.conf）&lt;br /&gt;
/etc/httpd/conf/httpd.conf&lt;br /&gt;
バーチャルホスト設定のとき、「NameVirtualHost *:80」をコメントから外すのを忘れないように。&lt;br /&gt;
&lt;br /&gt;
ここで停電のためPCのバッテリーが切れました。&lt;br /&gt;
&lt;br /&gt;
２時間目&lt;br /&gt;
・各自希望のWebアプリを設計する&lt;br /&gt;
DB設計&lt;br /&gt;
画面遷移&lt;br /&gt;
&lt;br /&gt;
３時間目&lt;br /&gt;
停電が復旧しました。&lt;br /&gt;
&lt;br /&gt;
・バーチャルホストの設定を実施&lt;br /&gt;
# vi /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
・apache再起動&lt;br /&gt;
# /etc/rc.d/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
・windowsのhostsファイルにホスト名追加&lt;br /&gt;
&amp;nbsp;windowsのコマンドラインから　バーチャルホスト名にpingして、戻ることを確認する。&lt;br /&gt;
&lt;br /&gt;
・config.phpのsymfonyのパスをlinuxにあわせる&lt;br /&gt;
# vi&amp;nbsp; /home/kikin/config/config.php&lt;br /&gt;
（viは、これから良く使うので慣れるしかありません） &lt;br /&gt;
&lt;br /&gt;
・権限設定(テキストがapachから見えるように)&lt;br /&gt;
# chmod -R 755 /home/kikin&lt;br /&gt;
&lt;br /&gt;
・画像データをメールで送付したので、ftpで転送する。ユーザはkikin&lt;br /&gt;
&amp;nbsp; 転送先は、/home/kikin/web、展開のコマンドは以下の通り。&lt;br /&gt;
$ tar -xvzf img.tar.gz&lt;br /&gt;
テキストの図が表示されていればOK。&lt;br /&gt;
&lt;br /&gt;
４時間目&lt;br /&gt;
・ローカルのWeb画面を見て、画像が表示されていればOK&lt;br /&gt;
&amp;nbsp; ローカルの画面が見れない人は、今回はオンラインの画面を見て作業を進める。&lt;br /&gt;
&lt;br /&gt;
・以下、テキストに従いフレームワークの説明&lt;br /&gt;
Mojaviを元に開発されたフレームワーク&lt;br /&gt;
symfonyのルールに従って開発、&lt;br /&gt;
&lt;br /&gt;
・MVCモデルの図の説明&lt;br /&gt;
現状では、理解していなくてもOK&lt;br /&gt;
&lt;br /&gt;
・徹底的にYAML 化された設定&lt;br /&gt;
→定義をYAMLの書式で記述&lt;br /&gt;
&lt;br /&gt;
・OR マッパーPropel との融合&lt;br /&gt;
→DBとの接続&lt;br /&gt;
&lt;br /&gt;
・symfonyのプロジェクト作成、一般ユーザにて作業&lt;br /&gt;
$ su - user&lt;br /&gt;
$ mkdir bbs2&lt;br /&gt;
$ cd bbs2&lt;br /&gt;
$ symfony init-project bbs2&lt;br /&gt;
&lt;br /&gt;
・アプリケーションの初期化&lt;br /&gt;
$ symfony init-app front&lt;br /&gt;
&lt;br /&gt;
・モジュール作成&lt;br /&gt;
symfonyのコマンドを入れるときは、プロジェクトディレクトリ直下で実行すること&lt;br /&gt;
（実行ユーザは一般ユーザで） &lt;br /&gt;
$ symfony init-module front default&lt;br /&gt;
&lt;br /&gt;
・バーチャルホストの設定&lt;br /&gt;
# vi /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
・サーバ再起動&lt;br /&gt;
# /etc/rc.d/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
・権限がないため、ユーザのホームディレクトリ権限変更&lt;br /&gt;
$ su -&lt;br /&gt;
# cd /home&lt;br /&gt;
# chmod -R 755 user&lt;br /&gt;
Webでアクセスしたとき以下の表示&lt;br /&gt;
Oops! An Error Occurred&lt;br /&gt;
The server returned a &quot;500 Internal Server Error&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
・eclipseにて、CentOSのファイルアクセス設定、phpソースの修正&lt;br /&gt;
ウインドウ/パースペクティブ/リモートシステムエクスプローラ&lt;br /&gt;
新規接続で、linuxユーザを設定、homeディレクトリが見れるようにする。&lt;br /&gt;
&amp;nbsp; phpファイル修正&lt;br /&gt;
bbs2/apps/front/modules/default/actions/actions.class.php&lt;br /&gt;
&amp;nbsp; 　　→executeIndex()を、return sfView::SUCCESS;&lt;br /&gt;
同/templates/indexSuccess.php&lt;br /&gt;
→Helloのコメントを記入&lt;br /&gt;
（この部分はWebテキストに記述があります）&lt;br /&gt;
eclipseでlinux上のphpソースが編集できることが判って非常に便利。&lt;br /&gt;
毎回ftpで送らないといけないと思ってました。&lt;br /&gt;
&lt;br /&gt;
・コメントが表示されない人は、以下の操作を実施&lt;br /&gt;
$ su ユーザ&lt;br /&gt;
$ cd /home/user/bbs2&lt;br /&gt;
$ symfony fix-perms&lt;br /&gt;
$ symfony cc&lt;br /&gt;
&lt;br /&gt;
ちなみに、うまくアクセス出来ないときは、/var/log/httpd/にバーチャルホストで&lt;br /&gt;
指定したログが出ているので、見てみれば何かヒントがあるかもしれません。&lt;br /&gt;
&amp;nbsp;#&amp;nbsp; tail xxxx-error_log&lt;br /&gt;
&lt;br /&gt;
・解説は明日（お休みの予定だったけど地震で休校になった時間の振り替え）</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/6568775238427545593/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/322.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/6568775238427545593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/6568775238427545593'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/322.html' title='symfony入門'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-216679202492230953</id><published>2011-03-16T22:17:00.005+09:00</published><updated>2011-06-13T10:57:26.345+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>phpで楽天 ジャンル配列データの作成</title><content type='html'>今週は休校が決まりました。 &lt;br /&gt;
&lt;br /&gt;
楽天のジャンルデータの作成は、XMLのデータが取得できますが、&lt;br /&gt;
手作業で配列データを作成するのは少し手間がかかります。&lt;br /&gt;
&lt;br /&gt;
Excelで作成するのは慣れていましたが、OpenOfficeはまだ慣れていないので配列としてデータを加工するのに時間がかかります。&lt;br /&gt;
&lt;br /&gt;
折角なので、phpで出来ないものか探したところ、同じことをしてくれた人がいました。&lt;br /&gt;
&lt;a href=&quot;http://webtech-walker.com/archive/2007/04/06023523.html&quot;&gt;Pear XML_Serializerを使ってみた - Webtech Walker&lt;/a&gt;を参考に配列データを作りました。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;require_once &#39;XML/Unserializer.php&#39;;

$xml = file_get_contents(&quot;http://api.rakuten.co.jp/rws/3.0/rest?developerId=（開発者ID）&amp;amp;operation=GenreSearch&amp;amp;version=2007-04-11&amp;amp;genreId=0&quot;);
$Unserializer =&amp;amp; new XML_Unserializer();
$Unserializer-&amp;gt;setOption(&#39;parseAttributes&#39;, TRUE);
$status = $Unserializer-&amp;gt;unserialize($xml);
if ($status === true) {
  $res_array = $Unserializer-&amp;gt;getUnserializedData();
  // print_r($res_array);
  foreach ($res_array[&#39;Body&#39;][&#39;genreSearch:GenreSearch&#39;][&#39;child&#39;] as $key =&amp;gt; $value) {
   $genre_array[] = $value ;
  }
//  print_r($genre_array) ;
}
&lt;/pre&gt;&lt;br /&gt;
$genre_array[][genreId]にジャンルコード&lt;br /&gt;
$genre_array[][genreName]に名称&lt;br /&gt;
が入っています。セレクトの部分はこのようになります。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;select name=&quot;genre&quot;&amp;gt;
 &amp;lt;?php foreach ($genre_array as $key1=&amp;gt;$value) { ?&amp;gt;
  &amp;lt;option value=&quot;&amp;lt;?php echo $value[genreId] ?&amp;gt;&quot; &amp;lt;?php if ($value[genreId] == $genre ) {&amp;nbsp;
echo &#39;selected=&quot;selected&quot;&#39; ;} ?&amp;gt;&amp;gt;&amp;lt;?php echo $value[genreName] ?&amp;gt;&amp;lt;/option&amp;gt;
 &amp;lt;?php } ?&amp;gt;
 &amp;lt;/select&amp;gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/216679202492230953/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/216679202492230953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/216679202492230953'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/blog-post.html' title='phpで楽天 ジャンル配列データの作成'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-6861250394626399218</id><published>2011-03-15T19:20:00.018+09:00</published><updated>2011-06-14T07:29:17.667+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><category scheme="http://www.blogger.com/atom/ns#" term="楽天"/><title type='text'>phpでAPI</title><content type='html'>php講習 3/15&lt;br /&gt;
&lt;br /&gt;
今日は、認定日のため午前中ハローワークに行って来ました。&lt;br /&gt;
&lt;br /&gt;
＜２時間目＞&lt;br /&gt;
最後に少しだけ出席、授業内容わからず、PCを起動して&lt;br /&gt;
eclipse、XAMPP、VMwareの環境を起動したことこでお昼。&lt;br /&gt;
楽天の何かをやってました。&lt;br /&gt;
（楽天て聞くと円天を思い出すのは考えすぎか）&lt;br /&gt;
今日は、出席者が少ないため、symfonyはやらないそうです。&lt;br /&gt;
&lt;br /&gt;
＜３時間目＞&lt;br /&gt;
お昼休みに、Webの手順どおり（おまけ/API）と聞いたので、とりあえず&lt;br /&gt;
その通りにやってみる。&lt;br /&gt;
（１）楽天のデベロッパーIDとアフィリエイトIDを取得&lt;br /&gt;
（２）PEARライブラリの設置（パスは間違えないように）&lt;br /&gt;
（３）サンプルコードに取得したIDを入れ、ローカルで実行。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;require_once &#39;Services/Rakuten.php&#39;;

$api = new Services_Rakuten(&#39;デベロッパーID&#39;, &#39;アフィリエイトID&#39;);
$api-&amp;gt;doItemSearch(&quot;山&quot;, &quot;101070&quot;, array(&#39;sort&#39; =&amp;gt; &#39;-reviewCount&#39;,&#39;page&#39; =&amp;gt; 1,&#39;imageFlag&#39; =&amp;gt; 1));
$data = $api-&amp;gt;getResultData();

print_r($data);
&lt;/pre&gt;&lt;br /&gt;
実行結果画面で出力された$dataから、&lt;a href=&quot;http://ja.wikipedia.org/wiki/Extensible_Markup_Language&quot;&gt;XML&lt;/a&gt;の&lt;a href=&quot;https://docs.google.com/document/d/1KGMYT7h6DDsiVPgWuycV2EahEi4fhGSt7wx9CopSXhU/edit?hl=ja&amp;amp;authkey=CPTthecH&quot;&gt;データ&lt;/a&gt;を取得する。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;Array
(
    [count] =&amp;gt; 112959
    [page] =&amp;gt; 1
    [first] =&amp;gt; 1
    [last] =&amp;gt; 30
    [hits] =&amp;gt; 30
    [carrier] =&amp;gt; 0
    [pageCount] =&amp;gt; 100
    [Items] =&amp;gt; Array
        (
            [Item] =&amp;gt; Array
                (
                    [0] =&amp;gt; Array
                        (
                            [itemName] =&amp;gt; ★あす楽対応★★レビューを書いて2点以上ご注文
...
                            [itemCode] =&amp;gt; vvv:10002539
                            [itemPrice] =&amp;gt; 2079
...
&lt;/pre&gt;&lt;br /&gt;
サンプルのデータでキーワードは「山」、商品コード「101070」（スポーツ・アウトドア）&lt;br /&gt;
このデータから、商品の情報を取得するためのphpコードを作成。&lt;br /&gt;
&lt;br /&gt;
ここまでは準備で、ここからが本題。&lt;br /&gt;
（４）XMLのデータ($data)から、商品一覧を表示するテーブルをHTMLで作成する。&lt;br /&gt;
使う項目は「mediumImageUrl」 「itemName」それとあとで「itemCode」&lt;br /&gt;
ただし、以下のコードはブログを保存すると壊れるので、一部コードを変更しています。&lt;br /&gt;
そのままコピーしてもつかえません。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&#39;1&#39;&amp;gt;&lt;br /&gt;
&amp;lt;php&lt;br /&gt;
foreach ($data[&quot;Items&quot;][&quot;Item&quot;] as $item) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;tr&quot; ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;td&quot; ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;&amp;lt;img src=\&quot;&quot; . $item[&quot;mediumImageUrl&quot;] . &quot;\&quot;&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;/td&quot; ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;td&quot; ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;商品 : &quot; . $item[&quot;itemName&quot;] ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;&amp;lt;br /&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;価格 : &quot; . $item[&quot;itemPrice&quot;] ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;/td&quot; ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print &quot;/tr&quot; ;&lt;br /&gt;
}&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
さらににアフェリエイトのリンクも張った。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;print &quot;&amp;lt;td&amp;gt;&amp;lt;a href=\&quot;&quot;.$item[&quot;affiliateUrl&quot;]. &quot;\&quot;&amp;gt;&quot; ;
 print &quot;&amp;lt;img src=\&quot;&quot; . $item[&quot;mediumImageUrl&quot;] . &quot;\&quot;&amp;gt;&quot;;
 print &quot;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&quot; ;
&lt;/pre&gt;＜４時間目＞&lt;br /&gt;
（５）一覧が出来たら、フォームで、キーワード、ジャンルを指定して検索できるようにする。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;if (isset($_POST[&quot;keywd&quot;])) {
$keywd = $_POST[&quot;keywd&quot;] ;
} else {
$keywd = &quot;山&quot; ;
}
if (isset($_POST[&quot;genre&quot;])) {
$genre = $_POST[&quot;genre&quot;] ;
} else {
$genre = &quot;101070&quot; ;
}

$api = new Services_Rakuten(&#39;デベロッパーID&#39;, &#39;アフィリエイトID&#39;);
$api-&amp;gt;doItemSearch($keywd, $genre, array(&#39;sort&#39; =&amp;gt; &#39;-reviewCount&#39;,&#39;page&#39; =&amp;gt; 1,&#39;imageFlag&#39; =&amp;gt; 1));
$data = $api-&amp;gt;getResultData();
&lt;/pre&gt;&lt;br /&gt;
（６）一度入力した情報は、検索フォームに残すほうが親切。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;キーワード：
&amp;lt;input type=&quot;text&quot; name=&quot;keywd&quot; size=&quot;30&quot; value=&quot;&amp;lt;?php echo $keywd ?&amp;gt;&quot;/&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
（７）ジャンルはポップアップにする。&lt;br /&gt;
ポップアップのための配列データ取得は、&lt;a href=&quot;http://webservice.rakuten.co.jp/api/genresearch/&quot;&gt;「楽天ジャンル検索API」&lt;/a&gt;から取得する。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;http://api.rakuten.co.jp/rws/3.0/rest?
developerId=[YOUR_developerID]
&amp;amp;operation=GenreSearch
&amp;amp;version=2007-04-11
&amp;amp;genreId=0
&lt;/pre&gt;&lt;br /&gt;
この実行結果から得られる&lt;a href=&quot;https://docs.google.com/document/d/1Rv60uJGVWQe-QGvNsXX3eKel6tjH3KvH45GPWaunUNA/edit?hl=ja&amp;amp;authkey=CICo6ckD&quot;&gt;XMLデータ&lt;/a&gt;から、商品コードの配列を作成&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;child&amp;gt;
&amp;lt;genreId&amp;gt;101070&amp;lt;/genreId&amp;gt;
&amp;lt;genreName&amp;gt;スポーツ・アウトドア&amp;lt;/genreName&amp;gt;
&amp;lt;genreLevel&amp;gt;1&amp;lt;/genreLevel&amp;gt;
&amp;lt;/child&amp;gt;

&amp;lt;child&amp;gt;
&amp;lt;genreId&amp;gt;100938&amp;lt;/genreId&amp;gt;
&amp;lt;genreName&amp;gt;ダイエット・健康&amp;lt;/genreName&amp;gt;
&amp;lt;genreLevel&amp;gt;1&amp;lt;/genreLevel&amp;gt;
&amp;lt;/child&amp;gt;
&lt;/pre&gt;&lt;pre class=&quot;prettyprint&quot;&gt;$data_array = array(
101070 =&amp;gt; &#39;スポーツ・アウトドア&#39; ,
100938 =&amp;gt; &#39;ダイエット・健康&#39; ,
);&amp;nbsp;&lt;/pre&gt;検索条件のjジャンルをフォームのセレクトにする。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;商品：
 &amp;lt;select name=&quot;genre&quot;&amp;gt;
 &amp;lt;?php foreach ($data_array as $key1=&amp;gt;$value) { ?&amp;gt;
  &amp;lt;option value=&quot;&amp;lt;?php echo $key1 ?&amp;gt;&quot; &amp;lt;?php if ($key1 == $genre ) {&amp;nbsp;
echo &#39;selected=&quot;selected&quot;&#39; ;} ?&amp;gt;&amp;gt;&amp;lt;?php echo $value ?&amp;gt;&amp;lt;/option&amp;gt;

 &amp;lt;?php } ?&amp;gt;
 &amp;lt;/select&amp;gt;
&lt;/pre&gt;一覧表のカラムにadd.phpのリンクを追加し、add.phpで商品コードを受け取る。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;print &quot;&amp;lt;td&amp;gt;&quot; ;
 print &quot;&amp;lt;a href=\&quot;add.php?itemCode=&quot;.$item[&quot;itemCode&quot;] . &quot;\&quot;&amp;gt;追加する&amp;lt;/a&amp;gt;&quot; ;
 print &quot;&amp;lt;/td&amp;gt;&quot; ;
&lt;/pre&gt;&lt;br /&gt;
結果として&lt;a href=&quot;https://docs.google.com/leaf?id=0B3oprsNttkltNjU5N2VlZmUtNTI3OS00M2ViLWI0YTItZTVjZmIxZmRjNmMx&amp;amp;hl=ja&amp;amp;authkey=CJ_gvS0&quot;&gt;こちら&lt;/a&gt;になりました。&lt;br /&gt;
&lt;br /&gt;
＜５時間目＞&lt;br /&gt;
add.phpの作成、コメントを入力できるようにする。&lt;br /&gt;
投稿結果をcommentテーブルに入れる。&lt;br /&gt;
そのとき、以下の項目も入れられるように、commentテーブルもカラム追加しておく。&lt;br /&gt;
ItemCode&lt;br /&gt;
など５項目ほどあり、ここはメモをPCに残して来たので詳細は木曜日に追記します。&lt;br /&gt;
&lt;br /&gt;
＜６時間目＞&lt;br /&gt;
授業を始めようとしたことろで、停電のため中止。&lt;br /&gt;
みんなしぶしぶ帰宅。&lt;br /&gt;
&lt;br /&gt;
これだと何をしているか判らないと思うので、&lt;br /&gt;
phpのコードと作業の詳細は、PCのpearの環境を作ってからもう少し整理して追記します。&lt;br /&gt;
明日は、お休みです。</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/6861250394626399218/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/315.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/6861250394626399218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/6861250394626399218'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/315.html' title='phpでAPI'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-7654569831813144492</id><published>2011-03-11T17:25:00.006+09:00</published><updated>2011-07-14T17:10:59.313+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>CentOSにsymfonyをインストール</title><content type='html'>訓練記録 3/11&lt;br /&gt;
&lt;br /&gt;
・掃除は今日も花粉症でお休みでした。&lt;br /&gt;
&lt;br /&gt;
＜１時間目＞&lt;br /&gt;
・firewallの設定（iptables）&lt;br /&gt;
今回は開発環境の設定なので、本番環境とは異なることを認識して下さい。&lt;br /&gt;
デフォルトでは、ファイアーウォールの設定がされていますが、これをとめます。&lt;br /&gt;
内容はテキストどおり、保存したらサーバ再起動&lt;br /&gt;
/etc/sysconfig/selinux&lt;br /&gt;
SELINUX=enforcing&lt;br /&gt;
↓&lt;br /&gt;
SELINUX=disabled&lt;br /&gt;
&lt;br /&gt;
getenforce コマンドでdisabledを確認&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iptables -P INPUT ACCEPT&lt;br /&gt;
iptables -P FORWARD DROP&lt;br /&gt;
iptables -P OUTPUT ACCEPT&lt;br /&gt;
&lt;br /&gt;
#ルールクリア&lt;br /&gt;
iptables -F&lt;br /&gt;
&lt;br /&gt;
#icmp(ping) と自端末からの入力を許可&lt;br /&gt;
iptables -A INPUT -p icmp -j ACCEPT&lt;br /&gt;
iptables -A INPUT -i lo -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
#Web、FTP、POP、smtp による接続を許可&lt;br /&gt;
iptables -A INPUT -p tcp --dport 80 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -p tcp --dport 21 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -p tcp --dport 110 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -p tcp --dport 25 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
#ssh による接続を許可&lt;br /&gt;
iptables -A INPUT -p tcp --dport 22 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
#TCP の接続開始と応答、FTP データなどを許可&lt;br /&gt;
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
#ルールをセーブする&lt;br /&gt;
/etc/init.d/iptables save&lt;br /&gt;
&lt;br /&gt;
cat /etc/sysconfig/iptables&lt;br /&gt;
&lt;br /&gt;
# vi /etc/sysconfig/iptables&lt;br /&gt;
#INPUTがDROPになっていたら修正&lt;br /&gt;
:INPUT DROP [0:0]&lt;br /&gt;
↓&lt;br /&gt;
:INPUT ACCEPT [0:0]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
＜２時間目＞&lt;br /&gt;
・Apacheのインストール&lt;br /&gt;
テキストのとおり&lt;br /&gt;
yumは、ソフトをインストールするためのコマンド&lt;br /&gt;
オプションの-y は、インストールの問い合わせに対して「y」と回答する&lt;br /&gt;
・Apacheの設定&lt;br /&gt;
/etc/init.d/httpd start&lt;br /&gt;
/etc/init.d/httpd restart&lt;br /&gt;
httpdのデーモン起動確認のコマンド&lt;br /&gt;
&amp;gt; ps -ef | grep httpd&lt;br /&gt;
PCからfirefoxで、ipアドレスを指定してapacheの画面が出ればOK&lt;br /&gt;
&lt;br /&gt;
・mysqlのインストールと設定&lt;br /&gt;
/etc/init.d/mysqld start&lt;br /&gt;
デーモン確認のコマンド &lt;br /&gt;
&amp;gt; ps -ef | grep mysqld&lt;br /&gt;
&lt;br /&gt;
・phpのインストール&lt;br /&gt;
時間がないので、午後&lt;br /&gt;
&lt;br /&gt;
・vsftpdのインストール&lt;br /&gt;
ffftpで接続確認、サーバはCentOS(VMware)、ユーザは作った一般ユーザ&lt;br /&gt;
# /etc/init.d/vsftpd start&lt;br /&gt;
デーモン確認のコマンド &lt;br /&gt;
#ps -ef | grep vsftpd&lt;br /&gt;
&lt;br /&gt;
＜３時間目＞&lt;br /&gt;
・ffftpでftpサーバへの接続確認&lt;br /&gt;
PCからffftpで、ipアドレスを指定して一般ユーザでログインが出きればOK&lt;br /&gt;
&lt;br /&gt;
・phpインストール(今回)は、symfony 1.0.20をインストールするためphpは5.2）&lt;br /&gt;
PHP 5.2.16&lt;br /&gt;
# php -v&lt;br /&gt;
&lt;br /&gt;
・pearをインストール&lt;br /&gt;
・symfonyをインストール、確認&lt;br /&gt;
# symfony -V&lt;br /&gt;
インストールモジュール確認 &lt;br /&gt;
&lt;br /&gt;
# pear list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
・環境を落とす&lt;br /&gt;
vmware,ptty,ffftp&lt;br /&gt;
&lt;br /&gt;
・vmwareからcentOSを一度削除して再度インストール作業&lt;br /&gt;
&lt;br /&gt;
＜４時間目＞&lt;br /&gt;
・vmwareからcentOSを一度削除して再度インストール作業、続き&lt;br /&gt;
&lt;br /&gt;
＜５時間目＞&lt;br /&gt;
・phpinfo()でphp動作を確認&lt;br /&gt;
mysqlのユーザを追加しようとして、&lt;a href=&quot;http://plaza.rakuten.co.jp/hknopage/diary/200907160000/&quot;&gt;エラーとなる&lt;/a&gt;&lt;br /&gt;
flush privileges;&lt;br /&gt;
ERROR 1146 (42S02): Table &#39;mysql.servers&#39; doesn&#39;t exist&lt;br /&gt;
対応は、リンク先を参照した。&lt;br /&gt;
&lt;br /&gt;
・今日は地震で電車が止まって帰れない。</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/7654569831813144492/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/311.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7654569831813144492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7654569831813144492'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/311.html' title='CentOSにsymfonyをインストール'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-8995404105489483281</id><published>2011-03-10T17:09:00.002+09:00</published><updated>2011-06-06T00:12:23.199+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="ランチャ"/><title type='text'>symfony環境設定の準備、その２</title><content type='html'>&amp;nbsp;訓練記録 3/10&lt;br /&gt;
&lt;br /&gt;
・今日も花粉症で掃除はお休みでした。&lt;br /&gt;
今日初めて掃除機で掃除してるの見た。&lt;br /&gt;
&lt;br /&gt;
＜１時間目＞&lt;br /&gt;
・火曜日から引き続きVMwareでCentOSを動かしてます。&lt;br /&gt;
（１）一般ユーザでログイン&lt;br /&gt;
（２）/home/ユーザ名/0310.txtを作成&lt;br /&gt;
（３）yahooの記事内容をコピー&lt;br /&gt;
（４）テキストの検索まで動作確認&lt;br /&gt;
&lt;br /&gt;
・puttyでの自動ログイン設定&lt;br /&gt;
まず、puttyでCeontOSにログイン中のセッションを保存する。 &lt;br /&gt;
puttyでログインするとき、ショートカットでリンク先をCentOSに指定。　&lt;br /&gt;
&quot;C:\Program Files\PuTTY\putty.exe&quot; -load 接続セッション名 -l &quot;ユーザ名&quot; -pw &quot;パスワード&quot;&lt;br /&gt;
ショートカットをランチャにドラックして登録、登録名を決める。&lt;br /&gt;
&lt;br /&gt;
・ランチャー(CraftLaunch)の登録結果を確認&lt;br /&gt;
Ctrl+Shift+Space でランチャ起動を登録（ホットキーの割り当ては別に記述します）&lt;br /&gt;
ここで、先ほどのputtyでVMwareのログイン名を指定して起動できることを確認する。&lt;br /&gt;
&lt;br /&gt;
＜２時間目＞&lt;br /&gt;
・viの操作復習と新しい操作方法&lt;br /&gt;
&amp;nbsp; カーソル移動コマンド&lt;br /&gt;
&lt;br /&gt;
＜３時間目＞&lt;br /&gt;
・viの操作復習&lt;br /&gt;
phpの開発では、linux環境ではviかemacsで作業&lt;br /&gt;
・linuxのコマンド（個々の説明はWebのテキストを参照）&lt;br /&gt;
個々のコマンド、パイプ、リダイレクトの説明&lt;br /&gt;
コマンドのヒストリ機能&lt;br /&gt;
ディレクトリ操作&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
＜４ー５時間目＞&lt;br /&gt;
・コマンドの説明、続き&lt;br /&gt;
top load avg&lt;br /&gt;
crontab (symfonyを使うとき利用するのでそのとき説明します)&lt;br /&gt;
&lt;br /&gt;
・ログの見方は、サーバ構築のあとで&lt;br /&gt;
&lt;br /&gt;
・lnコマンドは、あとでsymfonyを使ったとき使うコマンドなので詳しくはそのときやります。&lt;br /&gt;
使い方は、windowsのショートカットと同じようなものです。&lt;br /&gt;
&lt;br /&gt;
＜６時間目＞&lt;br /&gt;
・今日やったコマンドの復習（自習）</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/8995404105489483281/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/310.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/8995404105489483281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/8995404105489483281'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/310.html' title='symfony環境設定の準備、その２'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-7827967878884393214</id><published>2011-03-08T16:52:00.008+09:00</published><updated>2011-06-05T23:21:56.780+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="vi"/><category scheme="http://www.blogger.com/atom/ns#" term="VMware"/><title type='text'>symfonyをlinux環境で使うための準備</title><content type='html'>訓練記録 3/8&lt;br /&gt;
&lt;br /&gt;
・掃除は花粉症なのでお休みしました。&lt;br /&gt;
&lt;br /&gt;
＜１－２時間目＞&lt;br /&gt;
・VMWare、CentOSインストーラのコピー&lt;br /&gt;
クラス全員がダウンロードしているためか、ネットワークが遅いため時間がかかった。 &lt;br /&gt;
&lt;br /&gt;
＜３時間目＞&lt;br /&gt;
VMwareとCentOSのインストール、インストール後CentOSを再起動しrootユーザでログイン確認。&lt;br /&gt;
インストール手順は、時間があれば整理します。 &lt;br /&gt;
&lt;br /&gt;
＜４時間目＞&lt;br /&gt;
・vmware上のCentOS上から、ifconfigでIPアドレスを確認&lt;br /&gt;
# ifconfig &lt;br /&gt;
&amp;nbsp; vmware上でCentOSのコマンドを入力することができますが、使いにくいので、puttyを使い操作します。puttyからの接続先としてIPアドレスを確認しておきます。 &lt;br /&gt;
&lt;br /&gt;
・puttyからCentOSのIPアドレスを指定して、rootでログイン確認&lt;br /&gt;
・作業用ユーザの追加、ログイン確認&lt;br /&gt;
(symfonyを使い出すと一般ユーザで作業することになります) &lt;br /&gt;
# useradd user&lt;br /&gt;
# passwd user&lt;br /&gt;
一般ユーザで再びログイン、rootユーザに切り替え&lt;br /&gt;
(-を付けると環境変数を引き継ぐ、場合によって使い分ける)を確認&lt;br /&gt;
$ su -&lt;br /&gt;
・ここで、ヤギーから質問、「ユーザを切り替えたらプロンプトが変わってた」&lt;br /&gt;
さすがに鋭い。プロンプトで、「#」はrootユーザ、「\」は一般ユーザとして区別してます。&lt;br /&gt;
&lt;br /&gt;
・puttyの端末の文字コード変更&lt;br /&gt;
設定の変更/変換/文字コードの設定/UTF-8(C,F)、保存を忘れずに&lt;br /&gt;
・ユーザ追加の練習、もう一人ユーザを追加してログインを確認する。&lt;br /&gt;
&lt;br /&gt;
・スピーカーの音を消す設定&lt;br /&gt;
putty　－　端末/ベル&lt;br /&gt;
VMware　－　サウンドカード&lt;br /&gt;
&lt;br /&gt;
＜５ー６時間目＞&lt;br /&gt;
・今日は何回か停電があり、プロジェクタが使えなくて説明が止まってます。&lt;br /&gt;
・linuxコマンドの説明&lt;br /&gt;
(各コマンドはWeb上に説明のページが山ほどあるので、自分にあった見やすいところを&lt;br /&gt;
探しましょう)&lt;br /&gt;
$ pwd&lt;br /&gt;
$ ls -al&lt;br /&gt;
$ vi&lt;br /&gt;
また、linuxはmanコマンドがあります。でもlinuxの画面になれるまでは、&lt;br /&gt;
Webの利用をお勧めします。&lt;br /&gt;
$ man ls&lt;br /&gt;
&lt;br /&gt;
・一般ユーザを使って、vi（&lt;a href=&quot;http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html&quot;&gt;委員長の推奨ページ&lt;/a&gt;）でテキスト編集の練習&lt;br /&gt;
コマンドモードでのカーソルの移動、「h」「j」「k」「l」の各キーの動き&lt;br /&gt;
(端末の設定によっては、カーソル移動は矢印キーも使えます。しかし、矢印キーは&lt;br /&gt;
使えない場合もありますので、キーの使い方は慣れておくほうが無難です) &lt;br /&gt;
・コマンドモードと入力モードの切り替え&lt;br /&gt;
・ウインドウ上のテキストのコピー＆ペースト&lt;br /&gt;
キーワード検索&lt;br /&gt;
・テキストファイルの内容確認&lt;br /&gt;
&amp;gt; cat&amp;nbsp; xxxxx.txt&lt;br /&gt;
・linuxを使う上で、コマンドとviは必要な機能です。自分で最低限の作業が出来る程度に&lt;br /&gt;
なれば困りません。&lt;br /&gt;
&lt;br /&gt;
・Linux（シェル）のテキスト補完機能&lt;br /&gt;
ファイル名を途中まで入力して、TABキーでファイル名を補完&lt;br /&gt;
シェルは、2種類(Bshell,Cshell)あって、 今の設定は、Bshell系のbashになってます。&lt;br /&gt;
&lt;br /&gt;
明日(3/9)はお休みです。&lt;br /&gt;
（木）はLinuxコマンドの予定</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/7827967878884393214/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/38.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7827967878884393214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7827967878884393214'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/38.html' title='symfonyをlinux環境で使うための準備'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-2277536193323740678</id><published>2011-03-08T09:37:00.003+09:00</published><updated>2011-06-14T09:58:31.832+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="smarty"/><category scheme="http://www.blogger.com/atom/ns#" term="九九"/><title type='text'>smartyで九九</title><content type='html'>smartyで九九の表を作成&lt;br /&gt;
&lt;br /&gt;
kuku.php&lt;br /&gt;
「../libs/Smarty.class.php」のパスは環境に合わせて調整が必要です。&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;?php
/**
&amp;nbsp;*&amp;nbsp;Smarty問題
&amp;nbsp;*&amp;nbsp;九々
&amp;nbsp;*&amp;nbsp;kuku.php&amp;nbsp;-&amp;nbsp;kuku.tpl
&amp;nbsp;*&amp;nbsp;@package&amp;nbsp;smarty_lesson
&amp;nbsp;*&amp;nbsp;@author
&amp;nbsp;*&amp;nbsp;@since
&amp;nbsp;*/

for&amp;nbsp;(&amp;nbsp;$i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;$i&amp;nbsp;&amp;lt;=&amp;nbsp;9;&amp;nbsp;$i&amp;nbsp;++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for&amp;nbsp;(&amp;nbsp;$j&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;$j&amp;nbsp;&amp;lt;=&amp;nbsp;9;&amp;nbsp;$j&amp;nbsp;++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//2次元配列の作成
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$num[$i][]&amp;nbsp;=&amp;nbsp;$i*$j;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}

require(&amp;nbsp;&quot;../libs/Smarty.class.php&quot;&amp;nbsp;);
$smarty&amp;nbsp;=&amp;nbsp;new&amp;nbsp;Smarty();
$smarty&amp;nbsp;-&amp;gt;&amp;nbsp;assign(&amp;nbsp;&quot;num&quot;,&amp;nbsp;$num&amp;nbsp;);
$smarty&amp;nbsp;-&amp;gt;&amp;nbsp;display(&amp;nbsp;&quot;kuku.tpl&quot;&amp;nbsp;);
&lt;/pre&gt;&lt;br /&gt;
kuku.tpl&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;table&amp;nbsp;border&amp;nbsp;=&amp;nbsp;&quot;1&quot;&amp;gt;
&amp;lt;caption&amp;gt;【九九の表】&amp;lt;/caption&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;nbsp;width=&quot;30&quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/th&amp;gt;
{for&amp;nbsp;$j=1&amp;nbsp;to&amp;nbsp;9}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;th&amp;nbsp;width=&quot;70&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{$j}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/th&amp;gt;
{/for}
&amp;lt;/tr&amp;gt;
{{foreach&amp;nbsp;$num&amp;nbsp;as&amp;nbsp;$key1=&amp;gt;$row}}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;th&amp;gt;{$key1}&amp;lt;/th&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{{foreach&amp;nbsp;$row&amp;nbsp;as&amp;nbsp;$key2=&amp;gt;$col}}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;td&amp;nbsp;&amp;nbsp;align=center&amp;gt;{$key1}*{$key2+1}&amp;nbsp;=&amp;nbsp;{$col}&amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{/foreach}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;
{/foreach}
&amp;lt;/table&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/2277536193323740678/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/06/smarty.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/2277536193323740678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/2277536193323740678'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/06/smarty.html' title='smartyで九九'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-3188677583358719216</id><published>2011-03-07T14:48:00.006+09:00</published><updated>2011-06-14T10:00:03.390+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bbs"/><category scheme="http://www.blogger.com/atom/ns#" term="smarty"/><title type='text'>smartyで掲示板</title><content type='html'>php講習 3/7 １４週目&lt;br /&gt;
&lt;br /&gt;
・掃除はなんと雪でお休みでした。&lt;br /&gt;
・今日までSmartyの予定でしたが、お休みが多い。&lt;br /&gt;
・今日は４時間です。さらに、今週は水曜日がお休み&lt;br /&gt;
&lt;br /&gt;
＜１時間目＞&lt;br /&gt;
・&lt;a href=&quot;http://ooyama3.blogspot.com/2011/06/smarty.html&quot;&gt;九九の表をsmarty&lt;/a&gt;で、今日はメールで送付しなくていい。&lt;br /&gt;
九九の表の解説、２次元配列に値を入れる仕組みについて。&lt;br /&gt;
smartyで、{foreach}を２重に記述する。（くわっちの例とは違うけど）&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;{{foreach $num as $key1=&amp;gt;$row}}
    
    {{foreach $row as $key2=&amp;gt;$col}}
        

&lt;/pre&gt;テーブルタグ&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;の位置に注意&lt;br /&gt;
ソースはメールで送付されました。&lt;br /&gt;
・BBSの続き&lt;br /&gt;
返信の出し方について、解説。&lt;br /&gt;
コメントの出力が出ている人は、返信の出し方について、九九の表を参考に。&lt;br /&gt;
テーブルを２つ使うときは、if文を使って条件判断をして出力する。&lt;br /&gt;
&lt;br /&gt;
＜２時間目＞&lt;br /&gt;
・BBSの続き、デバック&lt;br /&gt;
（１）投稿のニックネームのリンクの表示がおかしい。テーブルタグは正しいが、表示のみ余分な文字列が付く。&lt;br /&gt;
&amp;lt;a href=&quot;www.yahoo.co.jp&quot;&amp;gt;smarty&amp;lt;/a&amp;gt; さんの投稿&amp;lt;br /&amp;gt;&lt;br /&gt;
→仕様？　データにhttp://が付いていないとFirefoxが補完機能を働かせて？「http://localost/bbs_smarty/」を付ける&lt;br /&gt;
（２）返信のニックネームの表示に余分な文字が付く&lt;br /&gt;
→修正&lt;br /&gt;
（３）emailが表示されない。&lt;br /&gt;
→emailの保存/表示処理がない&lt;br /&gt;
&lt;br /&gt;
・くわっちの一言：テンプレートで出力を確認する際は、一度に全てのカラムを表示させるのでは&lt;br /&gt;
なく、１つだけ表示して、うまくいったら他のカラムも表示する、という手順にしましょう。また、&lt;br /&gt;
IF文など、複雑な部分も一旦とっぱらって、後からにしましょう。&lt;br /&gt;
&lt;br /&gt;
＜３時間目＞&lt;br /&gt;
・BBSの続き、デバック&lt;br /&gt;
&lt;br /&gt;
＜４時間目＞&lt;br /&gt;
・BBSの解説&lt;br /&gt;
メールで資料が配布されているので、参照する。&lt;br /&gt;
パラメータを１つで渡す方法と、２つで渡す方法があります。&lt;br /&gt;
/imgフォルダの指定は、index.tplのhtmlタグで指定していますが、&lt;br /&gt;
index.phpからの相対パスで、index.tplからの相対パスではありません。&lt;br /&gt;
・comment.id = reply.comment_idの判断をどこでやるか。&lt;br /&gt;
phpで多次元配列を作り、テンプレートに渡す。&lt;br /&gt;
ロジックを書くのは、プログラマ。&lt;br /&gt;
デザイナには負担はかけないほうがいい。&lt;br /&gt;
・配布したソースでは、セッションの使い方など、今まで説明した機能はなるべく使っています。&lt;br /&gt;
smartyの書き方の参考にして下さい。&lt;br /&gt;
&lt;br /&gt;
ごごは、すっかり雨もあがった。&lt;br /&gt;
&lt;br /&gt;
今日は、くわっちの最後の日でした。&lt;br /&gt;
&lt;br /&gt;
＊サクラエディタでの&lt;a href=&quot;http://memorva.jp/memo/windows/sakura_php_kwd_khp.php&quot;&gt;phpの設定&lt;/a&gt;について</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/3188677583358719216/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/37.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/3188677583358719216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/3188677583358719216'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/37.html' title='smartyで掲示板'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-1292256125432349683</id><published>2011-03-05T07:15:00.000+09:00</published><updated>2011-06-14T07:15:47.061+09:00</updated><title type='text'>smartyでfizzbuzz</title><content type='html'>smartyでfizzbuzzを作ったサンプルです。&lt;br /&gt;
&lt;br /&gt;
fizzbuzz.php&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;?php

/***
&amp;nbsp;*
&amp;nbsp;*&amp;nbsp;phpで配列「num_list」に１～100までの整数をセット
&amp;nbsp;*&amp;nbsp;tplで「if」と「foreach」を使ってFIZZBUZZを表示
&amp;nbsp;*&amp;nbsp;３の倍数はFIZZ
&amp;nbsp;*&amp;nbsp;５の倍数はBUZZ
&amp;nbsp;*&amp;nbsp;３と５の公倍数はFIZZBUZZ
&amp;nbsp;*&amp;nbsp;それ以外は数字を表示
&amp;nbsp;*
&amp;nbsp;*/

require(&amp;quot;../libs/Smarty.class.php&amp;quot;);
$smarty&amp;nbsp;=&amp;nbsp;new&amp;nbsp;Smarty();

for&amp;nbsp;($i&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;$i&amp;nbsp;&amp;lt;=&amp;nbsp;100;&amp;nbsp;$i++)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$num_list[$i]&amp;nbsp;=&amp;nbsp;$i&amp;nbsp;;
}
$smarty&amp;nbsp;-&amp;gt;&amp;nbsp;assign(&amp;quot;num_list&amp;quot;,&amp;nbsp;$num_list);
$smarty&amp;nbsp;-&amp;gt;&amp;nbsp;assign(&amp;quot;fizz&amp;quot;,&amp;nbsp;&amp;quot;FIZZ&amp;quot;);
$smarty&amp;nbsp;-&amp;gt;&amp;nbsp;assign(&amp;quot;buzz&amp;quot;,&amp;nbsp;&amp;quot;BUZZ&amp;quot;);
$smarty&amp;nbsp;-&amp;gt;&amp;nbsp;display(&amp;quot;fizzbuzz.tpl&amp;quot;);
?&amp;gt; 
&lt;/pre&gt;&lt;br /&gt;
fizzbuzz.tpl&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta&amp;nbsp;http-equiv=&amp;quot;Content-Type&amp;quot;&amp;nbsp;content=&amp;quot;text/html;&amp;nbsp;charset=UTF-8&amp;quot;&amp;gt;
&amp;lt;title&amp;gt;Insert&amp;nbsp;title&amp;nbsp;here&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

{foreach&amp;nbsp;from&amp;nbsp;=&amp;nbsp;$num_list&amp;nbsp;item&amp;nbsp;=&amp;nbsp;num_i&amp;nbsp;key&amp;nbsp;=&amp;nbsp;num}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{if&amp;nbsp;$num&amp;nbsp;is&amp;nbsp;div&amp;nbsp;by&amp;nbsp;3}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{if&amp;nbsp;$num&amp;nbsp;is&amp;nbsp;div&amp;nbsp;by&amp;nbsp;5}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{$fizz}{$buzz}&amp;lt;br&amp;nbsp;/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{else}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{$fizz}&amp;lt;br&amp;nbsp;/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{/if}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{else}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{if&amp;nbsp;$num&amp;nbsp;is&amp;nbsp;div&amp;nbsp;by&amp;nbsp;5}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{$buzz}&amp;lt;br&amp;nbsp;/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{else}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{$num}&amp;lt;br&amp;nbsp;/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{/if}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{/if}
{/foreach}

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt; 
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/1292256125432349683/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/06/smartyfizzbuzz.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/1292256125432349683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/1292256125432349683'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/06/smartyfizzbuzz.html' title='smartyでfizzbuzz'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-1614467394869490472</id><published>2011-03-04T17:40:00.005+09:00</published><updated>2011-06-14T06:09:34.001+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2次元配列"/><category scheme="http://www.blogger.com/atom/ns#" term="smarty"/><title type='text'>smartyで掲示板</title><content type='html'>&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 3/4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・掃除も花粉症でお休みしました。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　今日は目が異常にかゆい。&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;＜１時間目＞&lt;/div&gt;・今日もsmartyでfizzbuzz&lt;/div&gt;&lt;div&gt;半分以上は出来るまで、毎日続く？&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・今日もsmartyでfizzbuzzと解説&lt;/span&gt;&lt;/div&gt;&lt;div&gt;smartyのif,elseifはphpと処理が逆になっています。&lt;/div&gt;&lt;div&gt;phpは上から順に処理されますが、smartyはヒットした条件で処理されるので、&lt;/div&gt;&lt;div&gt;書き方の順は逆になります。&lt;/div&gt;・九九の表&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３－５時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;・BBSのindex.phpをsmartyで書き直す&lt;/div&gt;&lt;div&gt;２次元配列の２次元目を設定するところがわからなかった。&lt;br /&gt;
１次元での例からの応用が利かない。頭が固くなってます。 &lt;/div&gt;&lt;div&gt;$row1[&#39;reply&#39;][] = $row2;&lt;br /&gt;
・実習の間に、PCのメモリ増設作業がありました。&lt;br /&gt;
デスクトップはやったことあったけど、ノートは経験が無かったので、作業は&lt;br /&gt;
委員長にお願いしました。ありがとうございます。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・BBSのsubmit.phpをsmartyで書き直す&lt;/span&gt;&lt;/div&gt;作業の残りは、3/7(月)にやってください。&lt;/div&gt;&lt;div&gt;なお、月曜日は４時間です。&lt;br /&gt;
&lt;br /&gt;
・smartyのテンプレートファイルをeclipseで書いていて不便だったので、&lt;br /&gt;
&amp;nbsp; せめて、&lt;a href=&quot;http://wiki.r-tgw.net/index.php?Eclipse%E3%81%A7Smarty%E3%81%AEtpl%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E9%96%A2%E9%80%A3%E4%BB%98%E3%81%91%E3%82%8B&quot;&gt;htmlファイル&lt;/a&gt;とだけ関連付けしました。&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/1614467394869490472/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/34.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/1614467394869490472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/1614467394869490472'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/34.html' title='smartyで掲示板'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-306431148055051966</id><published>2011-03-03T18:09:00.008+09:00</published><updated>2011-06-14T07:18:33.475+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="escape"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="smarty"/><title type='text'>smarty講習</title><content type='html'>&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;php講習 3/3&lt;br /&gt;
&lt;br /&gt;
・掃除は花粉症でお休みしました。&lt;/div&gt;&lt;div&gt;今日は目が異常にかゆい。&lt;/div&gt;&lt;div&gt;&lt;br clear=&quot;none&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・&lt;a href=&quot;http://ooyama3.blogspot.com/2011/06/smartyfizzbuzz.html&quot;&gt;smartyでfizzbuzz&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・smartyでfizzbuzz、続き&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　出来ない人は１６時半以降続きを。。。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・smartyで、smartyクラスの継承&lt;/div&gt;&lt;div&gt;デリミタの変更&lt;br /&gt;
（デリミタ「{」「}」はjavascriptと競合する可能性があるので、そのままで使うことは&lt;br /&gt;
あまりないとのこと）&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・mysqlで環境設定&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　DB作成&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　Table作成&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・DBのtableからデータを取得（今までの復習）&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・配列変数でのデータ取得&lt;/div&gt;&lt;div&gt;・テーブルの行データ取得を２次元配列で扱う&lt;br /&gt;
行データは連想配列に入っているので、smartyでは、「.」（ドット）＋「カラム名」で参照する。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜４時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・smarty課題の練習&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜５時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・smarty課題の練習、続き&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・smartyでlogin.phpとlogin.tplに分ける&lt;/div&gt;&lt;div&gt;phpの課題でもやっていた、phpとhtmlのタグを分ける作業の延長&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;「|escape」に関連し、default_modifiersのURL紹介があったので少し調べました。&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://ganchiku.com/2006/03/smartydefault_modifiers.html&quot;&gt;Smartyを使う際は、default_modifiersをセットしようぜ。訂正！バグあり。&lt;/a&gt;&lt;/div&gt;&lt;div&gt;この関数default_modifiersはなかなか曲者のようで、別の記事もありました。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;・&lt;a href=&quot;http://blog.asial.co.jp/309&quot;&gt;Smartyのバグ ～default_modifiers～&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・&lt;/span&gt;&lt;a href=&quot;http://nonn-et-twk.net/twk/node/133&quot;&gt;Smartyでdefault_modifiers指定時に{debug}を使う方法&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://nonn-et-twk.net/twk/node/133&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;Webでよく調べたらもっと出るのかもしれないし、&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;3.0.6になって改善されているかも&lt;/span&gt;しれない。&lt;br /&gt;
&lt;br /&gt;
☆追記、escapeの除外方法&lt;br /&gt;
smarty 2では、{$body|smarty:nodefaults}だったが、&lt;br /&gt;
&lt;a href=&quot;http://blog.yume-dia.jp/archives/142&quot;&gt;smarty 3では、{$body nofilter}に変わったようです。&lt;/a&gt;&lt;br /&gt;
日本語版マニュアルはまだですが、&lt;a href=&quot;http://www.smarty.net/docs/en/variable.default.modifiers.tpl&quot;&gt;英語版&lt;/a&gt;には反映されています。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/306431148055051966/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/33.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/306431148055051966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/306431148055051966'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/33.html' title='smarty講習'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-7949255689055916900</id><published>2011-03-02T16:53:00.006+09:00</published><updated>2011-06-14T05:32:23.711+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="hosts"/><category scheme="http://www.blogger.com/atom/ns#" term="smarty"/><title type='text'>smarty講習</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 3/2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・掃除は雨でお休みでした。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・今日も雨だが、花粉症で目がかゆい。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;・apacheのバーチャルホストの説明&lt;/div&gt;&lt;div&gt;httpd-vhosts.conf設定変更&lt;/div&gt;&lt;div&gt;設定は環境をlinuxで作ったときに行うので一度戻しましょう。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・資料がメールで送付されたので、参照して下さい。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;・PHPの基礎の話し。&lt;/div&gt;&lt;div&gt;・php.iniのerror_reportingについて&lt;/div&gt;&lt;div&gt;eclipseの変数表示、「緑の○」&lt;/div&gt;&lt;div&gt;この表示がない変数は定義されていない（目安になる）&lt;/div&gt;&lt;div&gt;連想配列$_POSTの事前定義は、冗長になるので「@」を付ける&lt;/div&gt;&lt;div&gt;エラーの原因がわかっている場合のみ使用可能。&lt;/div&gt;&lt;div&gt;・現場の状況によって使い分ける。&lt;/div&gt;&lt;div&gt;全部宣言すると、javaと同じになり、phpのメリットがない。&lt;br /&gt;
ちなみに、php.iniのerror_reporting設定はphpスクリプトの&lt;a href=&quot;http://jp.php.net/manual/ja/function.error-reporting.php&quot;&gt;関数&lt;/a&gt;でも実行できるみたい。&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;error_reporting(E_ALL);
&lt;/pre&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;・サーバ上のフォルダにindex.phpがないとき、ディレクトリが見えてしまう。&lt;/div&gt;&lt;div&gt;公開するサーバではまずいので、linuxの環境を作ったとき設定をします。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・smartyの話し。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・再度メールで資料が２件送付されています。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　昨日同様に資料を展開して、フォルダーをプロジェクトに。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜４時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・課題１、２の説明と、練習&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　代入文&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　if文&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜５時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・課題３の説明、{foreach}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・セレクト部品の処理をsmartyで書く&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・セレクト部品の処理をsmartyで書く（&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;続き）&lt;/div&gt;&lt;div&gt;ブラウザ？でキャッシュされているため、selectを変更したあと&lt;/div&gt;&lt;div&gt;画面をリフレッシュしても、現在の日付に戻らなかった。&lt;/div&gt;&lt;div&gt;毎回画面を閉じて、開きなおすと動いた。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;・明日は、smartyでDBの処理だそうです。&lt;/div&gt;&lt;div&gt;・また、smartyは今週で終わりで、来週からlinuxだそうです。&lt;/div&gt;&lt;div&gt;そのlinuxも数日で、次がsymfonyの予定だそうです。&lt;/div&gt;&lt;div&gt;メモリは間に合ったのだろうか？&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/7949255689055916900/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/32.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7949255689055916900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7949255689055916900'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/32.html' title='smarty講習'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-5976973985209951788</id><published>2011-03-01T17:11:00.019+09:00</published><updated>2012-07-19T11:24:43.514+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="hosts"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="smarty"/><title type='text'>xampp環境にsmartyインストール、環境設定</title><content type='html'>&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
訓練記録 3/1&lt;br /&gt;
&lt;br /&gt;
・今日から３月です。訓練も半分終わってしまいました。&lt;/div&gt;
&lt;div&gt;
・掃除は雨でお休みでした。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
・昨日のclassサンプルプログラム修正版がメールで送付されたので差し替え&lt;/div&gt;
&lt;div&gt;
・クラス、オブジェクト指向、テンプレートエンジンの説明用資料配布、内容の説明&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・UMLでの開発について&lt;/div&gt;
&lt;div&gt;
大規模なシステムの場合、パーツに分けてそれぞれ担当が開発する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・MVCモデル、テンプレートエンジン&lt;/div&gt;
&lt;div&gt;
モデル　&lt;/div&gt;
&lt;div&gt;
ビュー　&lt;/div&gt;
&lt;div&gt;
コントローラ　&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.smarty.net/docsv2/ja/&quot;&gt;smarty&lt;/a&gt;はビューの部分を切り離すもの&lt;/div&gt;
&lt;div&gt;
モデルは自分で作らなくてはならない。&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
・PHP開発者は、ほぼsmartyは経験している。&lt;/div&gt;
&lt;div&gt;
それ以降、フレームワークはそれぞれの会社等で使っているものを使用。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・PHPフレームワーク、３大フレームワーク&lt;/div&gt;
&lt;div&gt;
Zend,Symfony,Cake&lt;/div&gt;
&lt;div&gt;
開発の仕事をするためには、いずれか１つ使いこなしていることは必要。&lt;br /&gt;
&lt;a href=&quot;http://www.google.co.jp/trends?q=%2CCakePHP%2Csymfony%2CZend+Framework&amp;amp;ctab=0&amp;amp;geo=all&amp;amp;date=all&amp;amp;sort=0&quot;&gt;googleトレンド&lt;/a&gt;にてシェアを見てみる。&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・開発する場合、現場では使用するフレームワークは用意されている。&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
・過去の案件でメンテナンスする場合もあるが、大きい開発の場合、&lt;/div&gt;
&lt;div&gt;
smartyは使わない。&lt;/div&gt;
&lt;div&gt;
・カスタマイズになった場合、フレームワークは選べない。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・phpメーリングリスト&lt;/div&gt;
&lt;div&gt;
登録することをお勧め。&lt;/div&gt;
&lt;div&gt;
phpで判らないことがあったとき、ここの過去ログにたどり着くことが多い。&lt;/div&gt;
&lt;div&gt;
メールは、毎回受け取るよりは、毎日１回にしておくことをお勧め。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・&lt;a href=&quot;http://events.php.gr.jp/&quot;&gt;event php&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
phpの開発者も参加している。(はてなのユーザIDでもログインできます）&lt;br /&gt;
&lt;br /&gt;
以下、Webのテキストを参考に作業（xampp環境にインストール）&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.smarty.net/download&quot;&gt;・smarty(3.0.7)インストール&lt;/a&gt;&lt;br /&gt;
(このサイトでマニュアルもダウンロードできますが、オンラインでも見れます)&lt;br /&gt;
smarty用のプロジェクトを作成 &lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.smarty.net/download&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
・apacheの&lt;a href=&quot;http://httpd.apache.org/docs/2.2/vhosts/&quot;&gt;バーチャルホストの設定&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
C:\pleiades\xampp\apache\conf\extra\httpd-vhosts.conf&lt;/div&gt;
&lt;div&gt;
### Smarty サンプル ###&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;/div&gt;
&lt;div&gt;
ホストのIP設定(windows)&lt;/div&gt;
&lt;div&gt;
C:\WINDOWS\system32\drivers\etc\hosts&lt;/div&gt;
&lt;div&gt;
127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Smarty_sample&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
キーワード検索（時間のある人は調べておく）&lt;/div&gt;
&lt;div&gt;
・バーチャルホスト&lt;/div&gt;
&lt;div&gt;
・hostsファイル&lt;/div&gt;
&lt;div&gt;
・127.0.0.1&lt;/div&gt;
&lt;div&gt;
・localhost&lt;/div&gt;
&lt;div&gt;
・名前解決&lt;/div&gt;
&lt;div&gt;
・&lt;a href=&quot;http://www.nic.ad.jp/ja/dom/system.html&quot;&gt;dns&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
・nslookup&lt;/div&gt;
&lt;div&gt;
・Webアプリ&lt;/div&gt;
&lt;div&gt;
・get/put&lt;br /&gt;
・キャッシュ(cashとcacheは違います)&lt;/div&gt;
&lt;div&gt;
・サーバサイド（スクリプト）&lt;/div&gt;
&lt;div&gt;
・クライアントサイド（スクリプト）&lt;br /&gt;
ちなみにphpは&lt;a href=&quot;http://safe-linux.homeip.net/Server_Rental/function/web/script.html&quot;&gt;サーバサイドスクリプト&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・&lt;a href=&quot;http://www.smarty.net/docs/ja/installing.smarty.basic.tpl&quot;&gt;smartyの環境設定&lt;/a&gt;（フォルダ作成：Example 2.5、Example 2.9参照）&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* templates&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * templates_c&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * config&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * cache&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・&lt;a href=&quot;http://www.phpbook.jp/smarty/&quot;&gt;smartyのリンク&lt;/a&gt;&lt;/span&gt;　（初心者向け自己学習の参考にして）&lt;br /&gt;
・&lt;a href=&quot;http://www.phppro.jp/school/smarty/&quot;&gt;smartyのリンク&lt;/a&gt;　（その２）&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・smartyファイル作成&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://ooyama3.blogspot.com/2012/07/hellophphellotpl.html&quot;&gt;hello.php&lt;/a&gt;(smartyのテンプレート呼び出し)&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://ooyama3.blogspot.com/2012/07/hellophphellotpl.html&quot;&gt;hello.tpl&lt;/a&gt;(smartyのテンプレート、templatesフォルダへ入れる)&lt;br /&gt;
テンプレートファイルの拡張子は「.tpl」を使いましょう。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・smartyソース(hello.php)の解説&lt;/div&gt;
&lt;div&gt;
ライブラリ(libs)&lt;/div&gt;
&lt;div&gt;
テンプレートディレクトリ(template_dir)&lt;/div&gt;
&lt;div&gt;
コンパイルディレクトリ(compile_dir)&lt;br /&gt;
phpと違って、変数名？の先頭に$は付かなくてもいい？ &lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・セキュリティ上問題があるので、今回作成したディレクトリは通常サーバの&lt;br /&gt;
公開されるディレクトリには置かない。&lt;/div&gt;
&lt;div&gt;
（公開領域(htdocフォルダ内)には、smarty関連フォルダは置かない）&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
・smarty 配列変数での出力&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;http://ja.wikipedia.org/wiki/JavaServer_Pages&quot;&gt;JSP&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
*　何回も更新してごめんなさい。思い出しながら書いてます。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/5976973985209951788/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/03/31.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/5976973985209951788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/5976973985209951788'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/03/31.html' title='xampp環境にsmartyインストール、環境設定'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-3684566412090873922</id><published>2011-02-28T17:30:00.004+09:00</published><updated>2011-06-13T10:55:23.626+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php.ini"/><category scheme="http://www.blogger.com/atom/ns#" term="クラス"/><title type='text'>phpクラスとエラーレベル</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 2/28　１３週目&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・掃除は雨でお休みでした。&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・今日からSmartyの予定でしたが、クラスの説明で１日かかった。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・担当の先生が変わったため、個別に先生と面談（金曜日の続き）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・面談の終わった人は、掲示板の課題。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　テキストの掲示板がある人は、クラス、オブジェクト指向の課題をメーリングリストで&lt;/span&gt;送ります。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・&lt;a href=&quot;http://ooyama3.blogspot.com/2010/12/1221.html&quot;&gt;クラスについて&lt;/a&gt;は、12/20-21にやってるが内容をすっかり忘れてました。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・クラスの記述では、クラスを定義するファイルは別に作成し呼び出す(include)ようにする。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　（いままでの課題などでは１つのphpファイルに記述していた）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・クラスファイルの命名規則、クラス名を最初大文字してそのあと&lt;/span&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;「class」&lt;/span&gt;を付ける&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　Human.class.php&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　Dog.class.php&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・メールで送付された課題の練習&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３－６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・課題の練習と解説&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;・php.iniで文字列検索「&lt;a href=&quot;http://jp.php.net/manual/ja/errorfunc.configuration.php#ini.error-reporting&quot;&gt;error_reporting&lt;/a&gt;」&lt;/div&gt;&lt;div&gt;error_reporting = E_ALL &amp;amp; ~E_NOTICE &amp;amp; ~E_DEPRECATED&amp;nbsp; &lt;/div&gt;&lt;div&gt;↓&lt;br /&gt;
error_reporting = &lt;a href=&quot;http://www.ecoop.net/memo/2008-07-09-1.html&quot;&gt;E_ALL&lt;/a&gt;&lt;/div&gt;&lt;div&gt;実際の開発では、エラーが出ているものは全てつぶす&lt;/div&gt;&lt;div&gt;今までの説明では、ワーニングでもエラーにせずに済ませていた。&lt;/div&gt;&lt;div&gt;・開発時はエラーをつぶすためonにする。&lt;/div&gt;&lt;div&gt;本番サーバでは、攻撃のヒントになるのでoffにしている。&lt;/div&gt;&lt;div&gt;レンタルサーバでは、php.iniファイルは設定できないので、ini_set()で設定する。&lt;/div&gt;&lt;div&gt;・この講習では、php.iniを元に戻す。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;・アクセス修飾子(&lt;a href=&quot;http://jp.php.net/manual/ja/language.oop5.visibility.php&quot;&gt;アクセス権&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;public &amp;nbsp; &amp;nbsp; &amp;nbsp;クラスの外からも参照可能&lt;/div&gt;&lt;div&gt;private &amp;nbsp; &amp;nbsp; クラス自身からの参照のみ&lt;/div&gt;&lt;div&gt;protected &amp;nbsp;クラス自身と継承したクラスから参照可能&lt;/div&gt;&lt;div&gt;概念の話しなので、実際にプログラムと動きを見る方がわかりやすい。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;・クラスのはなし、継承から。&lt;/div&gt;&lt;div&gt;継承は、symfonyで使う。使ううちに判ってくる。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;・クラス図で検索するとクラスを図にしたものの説明がある。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;・住所録、login.php&lt;/div&gt;&lt;div&gt;テーブルの内容を読んだら、デバック中は配列（レコード）の内容を確認しておく。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;・明日からsmarty、Webテキストの拡張２の状態から始めます。&lt;/div&gt;&lt;div&gt;出来ていない人は準備しておいて下さい。&lt;/div&gt;&lt;div&gt;（おそらく、1月に先生からメールで配布されていたはず）&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/3684566412090873922/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/228.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/3684566412090873922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/3684566412090873922'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/228.html' title='phpクラスとエラーレベル'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-2953305850050063900</id><published>2011-02-25T17:02:00.006+09:00</published><updated>2011-06-13T10:52:00.450+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="セッション"/><category scheme="http://www.blogger.com/atom/ns#" term="住所録"/><title type='text'>php住所録作成、セッション</title><content type='html'>&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 2/25&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・今日はいい天気です。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;花粉症で目が痒い、掃除はお休みしました。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・今日も課題の作成なし&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張の続き（今日までの予定）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;テスト項目の整理&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張の続き&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;テスト、動作確認&lt;/div&gt;&lt;div&gt;一般ユーザで表示が消えない&lt;/div&gt;&lt;div&gt;→記述の間違い　&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;if ($login_authority=2) {
  ↓
if ($login_authority==2) {
&lt;/pre&gt;&lt;div&gt;パスワードチェックで半角英数のエラーが出ない　&lt;/div&gt;&lt;div&gt;→　ログイン画面で関数を呼んでいなかった&lt;/div&gt;&lt;div&gt;ログオン画面への戻りでエラーが表示されるときがある&lt;/div&gt;&lt;div&gt;→　タイムアウトのとき、外部変数のエラーが出る&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張の続き&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　ログオン画面への戻りでエラーが表示されるときがある&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　　　→　タイムアウトのとき、外部変数のエラーが出る&lt;/span&gt;&lt;/div&gt;引き続き調査中、Webにあるエラーの対策をいくつか試みたがいずれも効果なし&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜４時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ログオン画面とセッションコントロールの説明&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜５－６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　　　→　タイムアウトのとき、外部変数のエラーが出る&lt;/span&gt;&lt;/div&gt;セッションの関数を変更したら、エラーになった。戻すと出ない。&lt;/div&gt;&lt;div&gt;Webで調べたら&lt;a href=&quot;http://hamoblo.com/simple-eye/index.php?type=1&amp;amp;entryId=6&quot;&gt;資料&lt;/a&gt;があった、phpのバグらしい。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;（$_SESSIONのキーとグローバル変数が同じ場合で、&lt;br /&gt;
その$_SESSIONが外部からグローバル変数とは関係ない外部変数を&lt;br /&gt;
別のグローバル変数を介して受け取っている場合）&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;session_start();
$aaa = &#39;abc&#39;;
$bbb = $_GET[&#39;abc&#39;];
$_SESSION[&#39;aaa&#39;] = $bbb;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
・変数名を変更して対応&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　上の例だと$aaa --&amp;gt; $aabに相当&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・来週から、smartyの予定&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　クラスのことがよく判っていない状況でデバックが出来るものだろうか。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/2953305850050063900/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/225.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/2953305850050063900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/2953305850050063900'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/225.html' title='php住所録作成、セッション'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-1931944476336343119</id><published>2011-02-24T17:14:00.006+09:00</published><updated>2011-06-13T11:04:47.740+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="住所録"/><title type='text'>php住所録作成、ユーザ登録（削除)</title><content type='html'>&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 2/24&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・今日は雨で、掃除はお休みしました。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・少し暖かくなってきました。今日は手袋をしなくても寒くない。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　でも、朝起きるのがつらくなる。花粉症で熟睡出来ていないようだ。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・今日も課題の作成なし&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張の続き（2/25(金)までに伸びた）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・#5 ユーザの登録、変更、削除&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ新規情報完了画面 user_insert_complete.php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;→パスワード入力が漏れていたので、入力、編集画面から訂正&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ新規情報完了画面 user_insert_complete.php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ情報削除確認画面 user_delete_confirm.php &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　→デバック中、パラメータが渡っていない&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ情報編集画面&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user_update.php &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;→削除へのボタンがなかった&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ情報削除完了画面 user_delete_complete.php&amp;nbsp;&lt;/span&gt;&lt;/div&gt;→デバック中&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜４時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ情報削除完了画面 user_delete_complete.php&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;入力チェックと、チェックの関数化&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　→入力チェックの関数１つをつくるのがやっと&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜５時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;チェックの関数化&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;→作業中&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;チェックの関数化、合わせて７個になった。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;練習だから、使えるものは使いまわすけど、実際に運用にするなら、&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;あんまり使いまわすとメンテナンスのとき面倒になる。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;今までのシステムなら、ハードの減価償却とかもからんで、&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;一度作ると３～５年かそれ以上使うことになっていたけど、&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;Webの世界はどうなんだろう。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/1931944476336343119/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/224.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/1931944476336343119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/1931944476336343119'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/224.html' title='php住所録作成、ユーザ登録（削除)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-7003135092893207731</id><published>2011-02-22T16:55:00.005+09:00</published><updated>2011-06-13T10:44:56.405+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="住所録"/><title type='text'>php住所録作成、ユーザ登録</title><content type='html'>&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 2/22&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・花粉症の症状が本格的に出てきたので、掃除はお休みしました。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・今日は課題の作成なし&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張の続き（2/24(木)まで？）&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・#5 ユーザの登録、変更、削除&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　とりあえずファイルだけ作った &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ユーザ情報一覧表示画面 user_info.php&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MV&lt;br /&gt;
ユーザ情報編集画面&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user_update.php&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MV&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ情報編集確認画面 user_update_confirm.php&amp;nbsp; MV&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　→デバック&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜４時間目＞&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;ユーザ情報編集確認画面 user_update_confirm.php&amp;nbsp; MV&lt;/div&gt;&lt;div&gt;→なんとか動くようになった、入力チェックは一部のみ実施 &lt;/div&gt;&lt;div&gt;ユーザ情報編集完了画面 user_update_complete.php MV&lt;/div&gt;&lt;div&gt;→デバック&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜５時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ情報編集完了画面 user_update_complete.php MV&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ユーザ新規情報入力画面 user_insert.php&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MV&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ユーザ新規情報確認画面 user_insert_confirm.php&amp;nbsp; MV&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　→&lt;/span&gt;入力チェックは一部のみ実施&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ユーザ新規情報完了画面 user_insert_complete.php MV&lt;/div&gt;&lt;div&gt;→作業中&lt;/div&gt;&lt;br /&gt;
終わらなかった、あと、チェックの関数化で整理もしたい。&lt;br /&gt;
全体にチェックが甘いのでとりあえず動く程度。 &lt;br /&gt;
ちなみに、明日は訓練お休みです。</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/7003135092893207731/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/222.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7003135092893207731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7003135092893207731'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/222.html' title='php住所録作成、ユーザ登録'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-6812759399026663791</id><published>2011-02-21T17:05:00.003+09:00</published><updated>2011-06-13T10:43:38.604+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="住所録"/><title type='text'>php住所録作成、管理画面</title><content type='html'>&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;php講習 2/21　１２週目&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・昨日から花粉症か、目が痒くなってます。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・掃除は東浜でした。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・今日は課題の作成なし&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録、機能拡張の続き（2/24(木)まで）&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２－６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・「session_start() ;」を使う上での作業の注意&lt;/div&gt;&lt;div&gt;コマンドを発行する前に出力があると、うまく動かない。&lt;/div&gt;&lt;div&gt;デバック出力、htmlタグなどが出ていることがあるので注意。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;・住所録の編集画面からの画面遷移を確認&lt;/div&gt;&lt;div&gt;・#3 管理者権限のチェックを追加&lt;/div&gt;&lt;div&gt;（一般ユーザ権限での画面レイアウト調整）&lt;/div&gt;&lt;div&gt;・#4 パスワード変更&lt;/div&gt;&lt;div&gt;メニュー画面からの呼び出し&lt;/div&gt;&lt;div&gt;変更画面（upass_update.php）&lt;/div&gt;&lt;div&gt;変更完了画面（upass_update_complete.php）&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・「WEBテキスト」の連絡がメールであったので見てました。&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/6812759399026663791/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/221.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/6812759399026663791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/6812759399026663791'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/221.html' title='php住所録作成、管理画面'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-260976981146337547</id><published>2011-02-19T11:12:00.001+09:00</published><updated>2011-06-21T11:14:41.680+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FizzBuzz"/><title type='text'>県でfizzbuzz</title><content type='html'>課題の県名一覧でfizzbuzzのphpコードです。&lt;br /&gt;
地域コードを使うために色を付けていますが、phpコードの主要部分は県名一覧と同じです。&lt;br /&gt;
なお、県コード一覧（pref.php）はincludeしています。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&amp;lt;?php
/**
&amp;nbsp;*
&amp;nbsp;*&amp;nbsp;47都道府県を１～47の都道府県コードと配列キーが
&amp;nbsp;*&amp;nbsp;対象になるように、配列変数「$pref」に格納して下さい。
&amp;nbsp;*&amp;nbsp;なお、３の倍数のときはFIZZ県と表示
&amp;nbsp;*&amp;nbsp;５の倍数のときはBUZZ県と表示（公倍数ならFIZZBUZZ県と表示）
&amp;nbsp;*
&amp;nbsp;*&amp;nbsp;@var&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.0.0
&amp;nbsp;*&amp;nbsp;@since&amp;nbsp;&amp;nbsp;2011/2/18
&amp;nbsp;*&amp;nbsp;@author&amp;nbsp;
&amp;nbsp;*
&amp;nbsp;*/

include_once&amp;nbsp;&#39;pref.php&#39;;

$pref2&amp;nbsp;=&amp;nbsp;array(
&#39;1&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;1&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;北海道

&#39;2&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;2&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;青森県
&#39;3&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;2&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;岩手県
&#39;4&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;2&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;宮城県
&#39;5&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;2&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;秋田県
&#39;6&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;2&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;山形県
&#39;7&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;2&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;福島県

&#39;8&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;茨城県
&#39;9&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;栃木県
&#39;10&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;群馬県
&#39;11&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;埼玉県
&#39;12&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;千葉県
&#39;13&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;東京都
&#39;14&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;3&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;神奈川県

&#39;15&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;新潟県
&#39;16&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;富山県
&#39;17&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;石川県
&#39;18&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;福井県
&#39;19&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;山梨県
&#39;20&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;長野県
&#39;21&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;岐阜県
&#39;22&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;静岡県
&#39;23&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;4&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;愛知県

&#39;24&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;三重県
&#39;25&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;滋賀県
&#39;26&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;京都府
&#39;27&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;大阪府
&#39;28&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;兵庫県
&#39;29&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;奈良県
&#39;30&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;5&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;和歌山県

&#39;31&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;6&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;鳥取県
&#39;32&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;6&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;島根県
&#39;33&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;6&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;岡山県
&#39;34&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;6&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;広島県
&#39;35&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;6&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;山口県

&#39;36&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;7&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;徳島県
&#39;37&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;7&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;香川県
&#39;38&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;7&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;愛媛県
&#39;39&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;7&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;高知県

&#39;40&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;福岡県
&#39;41&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;佐賀県
&#39;42&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;長崎県
&#39;43&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;熊本県
&#39;44&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;大分県
&#39;45&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;宮崎県
&#39;46&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;,&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;鹿児島県
&#39;47&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;8&#39;);&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;沖縄県

$pref_col&amp;nbsp;=&amp;nbsp;array(&amp;nbsp;&#39;1&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#CCFFCC&#39;,
&#39;2&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#99FF99&#39;,
&#39;3&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#9999FF&#39;,
&#39;4&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#CCFFFF&#39;,
&#39;5&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#FFCC00&#39;,
&#39;6&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#FFFF99&#39;,
&#39;7&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#FFCCCC&#39;,
&#39;8&#39;&amp;nbsp;=&amp;gt;&amp;nbsp;&#39;#FF66FF&#39;&amp;nbsp;);

?&amp;gt;

&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;pref&amp;lt;/title&amp;gt;
&amp;lt;style&amp;nbsp;type=&quot;text/css&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;table,&amp;nbsp;tr,&amp;nbsp;th,&amp;nbsp;td&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; border-collapse:&amp;nbsp;collapse;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border:&amp;nbsp;1px&amp;nbsp;#808080&amp;nbsp;solid;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;table&amp;nbsp;border=&quot;1&quot;&amp;nbsp;align=&quot;center&quot;&amp;gt;
&amp;lt;caption&amp;gt;【県名一覧】&amp;lt;/caption&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;nbsp;bgcolor=#00ffcc&amp;gt;県コード&amp;lt;/th&amp;gt;&amp;lt;th&amp;nbsp;bgcolor=#00ffcc&amp;gt;県名&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;?php&amp;nbsp;foreach&amp;nbsp;($prefAry&amp;nbsp;as&amp;nbsp;$key&amp;nbsp;=&amp;gt;&amp;nbsp;$value)&amp;nbsp;{&amp;nbsp;?&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&amp;nbsp;$str&amp;nbsp;=&amp;nbsp;&quot;&quot;&amp;nbsp;;&amp;nbsp;?&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;td&amp;nbsp;align=&quot;center&quot;&amp;nbsp;bgcolor=&amp;lt;?php&amp;nbsp;echo&amp;nbsp;$pref_col[$pref2[$key]]&amp;nbsp;?&amp;gt;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&amp;nbsp;print&amp;nbsp;$key;&amp;nbsp;?&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;td&amp;nbsp;align=&quot;left&quot;&amp;nbsp;bgcolor=&amp;lt;?php&amp;nbsp;echo&amp;nbsp;$pref_col[$pref2[$key]]&amp;nbsp;?&amp;gt;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;?php&amp;nbsp;if&amp;nbsp;(($key&amp;nbsp;%3)&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;{&amp;nbsp;$str&amp;nbsp;.=&amp;nbsp;&quot;FIZZ&quot;&amp;nbsp;;&amp;nbsp;}&amp;nbsp;?&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&amp;nbsp;if&amp;nbsp;(($key&amp;nbsp;%5)&amp;nbsp;==&amp;nbsp;0)&amp;nbsp;{&amp;nbsp;$str&amp;nbsp;.=&amp;nbsp;&quot;BUZZ&quot;&amp;nbsp;;&amp;nbsp;}&amp;nbsp;?&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;?php&amp;nbsp;if&amp;nbsp;($str&amp;nbsp;==&amp;nbsp;&quot;&quot;&amp;nbsp;)&amp;nbsp;{&amp;nbsp;print&amp;nbsp;$value;&amp;nbsp;}&amp;nbsp;else&amp;nbsp;{&amp;nbsp;print&amp;nbsp;$str&amp;nbsp;;&amp;nbsp;}&amp;nbsp;?&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/tr&amp;gt;
&amp;lt;?php&amp;nbsp;}&amp;nbsp;?&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt; 
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/260976981146337547/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/06/fizzbuzz_21.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/260976981146337547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/260976981146337547'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/06/fizzbuzz_21.html' title='県でfizzbuzz'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-5545746290215318249</id><published>2011-02-18T18:13:00.007+09:00</published><updated>2011-06-21T11:17:20.476+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="セッション"/><category scheme="http://www.blogger.com/atom/ns#" term="住所録"/><title type='text'>php住所録作成、セッション、クッキ－</title><content type='html'>&lt;div&gt;php講習 2/18&lt;br /&gt;
&lt;br /&gt;
・今日は、雨のあとで掃除は中止でした。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・朝の脳体操、&lt;a href=&quot;http://ooyama3.blogspot.com/2011/06/fizzbuzz_21.html&quot;&gt;県でfizzbuzz&lt;/a&gt;&lt;/div&gt;&lt;div&gt;47都道府県の都道府県コードと都道府県名を通常配列「$pref」に入れる。&lt;/div&gt;&lt;div&gt;以下、問題を写しきれなかったので概要。&lt;/div&gt;&lt;div&gt;47都道府県を１～47の都道府県コードと配列キーが&lt;br /&gt;
対象になるように、配列変数「$pref」に格納&lt;br /&gt;
なお、３の倍数のときはFIZZ県と表示&lt;br /&gt;
５の倍数のときはBUZZ県と表示（公倍数ならFIZZBUZZ県と表示）&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;・メールで、資料が送付されているので、昨日と同様に「hpdoc」に入れて&lt;/div&gt;&lt;div&gt;フォルダ名をsession2に変更し、プロジェクトを作成する。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・&lt;a href=&quot;http://e-words.jp/w/E382AFE38383E382ADE383BC.html&quot;&gt;クッキー&lt;/a&gt;の復習&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ブラウザとサーバでpost,getしているようなもの。&lt;/div&gt;&lt;div&gt;サンプルコードcoockie.phpで、htmlspecialcharsに第３パラメータ「&#39;UTF-8&#39;」を追加。&lt;/div&gt;&lt;div&gt;・「session1.php」「session2.php」「session3.php」を使って、セッションの仕組みを体験&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・「session1.php」「session2.php」「session3.php」を使って、セッションの仕組みを体験(続き)&lt;/span&gt;&lt;/div&gt;・MVCモデル&lt;br /&gt;
&lt;div&gt;&lt;div&gt;・コントローラ&lt;/div&gt;&lt;div&gt;ページの遷移をコントロールあえて言えば(session2.php)&lt;/div&gt;・課題、住所録拡張機能（ログイン機能）&lt;/div&gt;&lt;div&gt;仕様書の赤：必ず、&lt;/div&gt;&lt;div&gt;青：できれば&lt;/div&gt;&lt;div&gt;黒：出来る人は&lt;/div&gt;画面推移のオレンジの箱：画面は存在しない、プログラム上のみ&lt;br /&gt;
&lt;div&gt;ログイン判定を全画面に適用：requireさせる&lt;/div&gt;&lt;div&gt;コントローラのソースコード例、コードの意味を理解して一部修正して使用する。&lt;/div&gt;&lt;div&gt;（そのままでは使えません）&lt;/div&gt;&lt;div&gt;プロジェクトの下に「ctr」フォルダを作ってそこにコントローラのphpファイルを入れる。&lt;/div&gt;&lt;div&gt;期間：2/22(来週の火曜日)まで&lt;/div&gt;&lt;div&gt;userテーブルのプライマリキーはidを付け、int型で作る&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜４－６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;住所録拡張機能（ログイン機能）の追加作業&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　作業は、テーブルを作るところから。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・クッキーで５分の設定をするが、各画面を開けたときにも５分を設定。&lt;/div&gt;・最低でも以下のファイル構成は作っておく&lt;/div&gt;&lt;div&gt;login.php&lt;/div&gt;&lt;div&gt;menu.php&lt;/div&gt;&lt;div&gt;./ctr/login_ctr.php&lt;/div&gt;&lt;div&gt;logout.ctr.php&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・ログイン画面を作って、ctr.phpを作ろうとしたところで時間になった。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/5545746290215318249/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/218.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/5545746290215318249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/5545746290215318249'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/218.html' title='php住所録作成、セッション、クッキ－'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1710371682534699914.post-7984706262461914320</id><published>2011-02-17T17:18:00.007+09:00</published><updated>2011-06-13T10:42:31.358+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="住所録"/><title type='text'>php住所録作成、コードの解説</title><content type='html'>&lt;div&gt;php講習 2/17&lt;br /&gt;
&lt;br /&gt;
・掃除は東浜でした。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜１時間目＞&lt;/span&gt;&lt;/div&gt;&lt;div&gt;・課題は、県名の一覧作成。&lt;/div&gt;&lt;div&gt;今日は３の倍数を表示。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜２時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・欠席が多くなってしまったので、とりあえず自習になりました。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;＜３ー６時間目＞&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;・住所録&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　メールで送付された住所録プログラムの解説&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　資料は解凍したら、htdocフォルダの中に&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;「&lt;/span&gt;&lt;/span&gt;address_book2」を&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;フォルダーごとコピー&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　eclipseでプロジェクト「&lt;/span&gt;&lt;/span&gt;address_book2」を作成すると、メッセージ&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　「指定した外部のロケーションは既に存在します。プロジェクトが。。。」が&lt;/span&gt;&lt;/div&gt;表示されるが、そのままOK。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　「&lt;/span&gt;&lt;/span&gt;db_connect.php」のDB接続情報は各自の環境に合わせる。&lt;/div&gt;&lt;div&gt;「lib」フォルダにincludeファイルがあります。&lt;/div&gt;&lt;div&gt;「css」フォルダにスタイルシートファイルがあります。&lt;/div&gt;&lt;div&gt;テーブルがの枠が２重になるのを防いでいます。&lt;/div&gt;&lt;div&gt;border-collapse: collapse;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　「index.php」から順に説明。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　&lt;/span&gt;&lt;/span&gt;文字コードの指定が出来るところは、なるべく指定をする。&lt;/div&gt;&lt;div&gt;指定をしないと、動く場合もあるが、環境によって動きが異なるときがある。&lt;/div&gt;&lt;div&gt;mb_strlen($disp_sei, UTF8)&lt;/div&gt;&lt;div&gt;「$error_msg[&quot;sei&quot;]」メッセージは、それぞれ変数に入れている人もいるが、&lt;/div&gt;&lt;div&gt;まとめて扱いたいので、配列にしています。&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;border-collapse: separate; color: black; font-family: Tahoma; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;　以下、途中省略。。。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;「insert_confirm.php」の「submit」ボタンは「登録する」に変更&lt;/div&gt;&lt;div&gt;「update.php」にある、sessionの２行は削除&lt;/div&gt;&lt;div&gt;「mysql_fetch_assoc」は、連想配列で結果を受け取る&lt;/div&gt;&lt;div&gt;各自が作成した住所録も、updateはinsertができていれば、少し変更して出来る。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;その他、メールにもコメントがあるので対応する。&lt;/div&gt;&lt;div&gt;今後、ログイン画面を作る。&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;残りの時間は、住所録の見直し。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
＜eclipse上のphpソースの変数名の表示設定について＞&lt;br /&gt;
ウインドウメニューから設定を選択&lt;br /&gt;
開いた設定画面にて、PHP/エディタ/構文の色指定を選ぶ。&lt;br /&gt;
構文要素で変数/前景をクリック、色の指定変更が可能。&lt;br /&gt;
依然のバージョンは茶色だったが、個人の好みで何色でもいいので指定。&lt;br /&gt;
eclipse 3.5と最新の3.6では設定が変わっているという話しがあります。&lt;br /&gt;
&lt;br /&gt;
書くと判りにくいけど、eclipseで操作すれば簡単。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ooyama3.blogspot.com/feeds/7984706262461914320/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ooyama3.blogspot.com/2011/02/217.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7984706262461914320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1710371682534699914/posts/default/7984706262461914320'/><link rel='alternate' type='text/html' href='http://ooyama3.blogspot.com/2011/02/217.html' title='php住所録作成、コードの解説'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>