<?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: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-5414359661279218222</id><updated>2011-08-19T23:42:05.376+09:00</updated><category term='個人的確認'/><category term='疑問'/><category term='apache'/><category term='Modx'/><category term='linux'/><category term='PHP'/><category term='fedora'/><category term='覚えた'/><category term='wordpress'/><title type='text'>個人的なweb勉強メモでごめんなさい</title><subtitle type='html'>HTMLもろくに書けないのに、無謀にもいろいろしてみたいと思ってまして、ノート代わりに書く個人的メモですんません。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-7766381150668845655</id><published>2009-04-14T11:12:00.003+09:00</published><updated>2009-04-14T14:49:57.537+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>openssl設定にまつわるetc</title><summary type='text'>大混乱中Opensslを設定しようとした。したこと。Opensslの存在確認。→あったなんか鍵とか作る→作ったsslのconfファイル設定→してみたhttpd.conf設定→してみたでもうまくいかない。Opensslをソースからインストール→できた鍵の作成→できないはじめから入ってたOpensslをアンインストール→できない・・・むぅ。しきり直して調べてみる。まずソースからOpensslをインストールしようとしたが、日本語サイトからとってきたら、めちゃくちゃ古いバージョンでびびった。んで、ソースコードでインストールしたやつは削除○/usr/local/ssl以下を削除んで、apacheを再コンパイル→できた/usr/local/httpd/conf/extra/httpd_ssl.conf↑こいつの＜VirtualHost _default_なんちゃら:443&gt;とかいうののdefault</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/7766381150668845655/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=7766381150668845655' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7766381150668845655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7766381150668845655'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2009/04/openssletc.html' title='openssl設定にまつわるetc'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-7394779563308438375</id><published>2008-10-30T19:18:00.000+09:00</published><updated>2008-10-30T19:29:33.909+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Modxのチャンクもどき</title><summary type='text'>昨日、急に先輩から課題が出された。index.phpの中に[[*hogehoge*]]と書かれていたらhogehoge.phpの内容に置き換えて表示されるようにphpを書きなさい的な感じ。ぇ～。丸一日悩んだ結果、無理でした・・・。んでヒントもらう。バッファリングを開始してhtmlを書き始める。んでその中に[[*hogehoge*]]も書いておく。バッファリングした文字列を変数に格納。hogehoge.phpを読み込んで変数に入れる。[[*hogehoge*]]をhogehoge.phpの内容に変換。バッファをフラッシュ。ほぼこんな感じのメールが帰ってきた。さて。したこと。index.php＜?phpob_start();?＞＜html＞省略[[*hogehoge*]]省略＜/html＞＜php$hoge = ob_get_contents();ob_end_clean();include</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/7394779563308438375/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=7394779563308438375' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7394779563308438375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7394779563308438375'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/modx_30.html' title='Modxのチャンクもどき'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-1000852108547522861</id><published>2008-10-27T20:50:00.002+09:00</published><updated>2008-10-27T21:06:40.941+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Modx'/><title type='text'>MODxのテンプレート変数</title><summary type='text'>MODxを使うにあたって、資料とかを読んでも、どうもテンプレート変数というものが理解できていなかったんだけど、今日先輩の説明を聞いてやっと半分くらい理解した。要はリソースの管理の「テンプレート変数」で、変数を作っておいて、それをテンプレートの中に[*templete*]と書いておけばそれぞれのページの編集画面で、その場所に入れるものを書けたり選べたりする、と。例えば、それぞれのフォルダごとに異なるスタイルシートを反映させたい時はdoc_cssとか名前をつけてテンプレート変数を作っておく。テンプレートの中で＜link href="[*doc_css*]" ～＞と書いておけば、ページの編集画面で、どのcssをそこに入れるか入力したりプルダウンで選んだりできるわけですよ。やべ、すんげぇ便利そ。でもしらなかったから、今まですんげ～無駄なことしてた・・・。んで、本読むとウイジェットとか＠</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/1000852108547522861/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=1000852108547522861' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/1000852108547522861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/1000852108547522861'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/modx.html' title='MODxのテンプレート変数'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-847354086487997871</id><published>2008-10-08T20:21:00.004+09:00</published><updated>2011-08-19T20:26:19.266+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><title type='text'>あ、</title><summary type='text'>ネタが前の投稿とかぶってた・・。混乱っぷりがよくわかるのぅ。まぁ、archive.phpだけじゃなく、他のindex.phpやらsingle.phpでも使えるということで。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/847354086487997871/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=847354086487997871' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/847354086487997871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/847354086487997871'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/blog-post_08.html' title='あ、'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-2561941272226160919</id><published>2008-10-08T20:15:00.002+09:00</published><updated>2008-10-08T20:20:37.112+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><title type='text'>wordpressでカテゴリ毎に表示を変えたい場合</title><summary type='text'>管理画面のデザイン＞テーマエディタここで変えたいデザインのファイルのデザインが影響するタグにclass="＜?php $cat = get_the_category(); $cat = $cat[0];{echo $cat-&gt;category_nicename;} ?＞"↑これを入れる。例えば、カテゴリのアーカイブでそれぞれデザイン変えたかったら、archive.phpの中の最初の方で＜div id="ほにゃらら" class="&lt;?php $cat = get_the_category(); $cat = $cat[0];{echo $cat-&gt;category_nicename;} ?&gt;"＞ってやればいい。あとはCSSを工夫する。文中の＜＞は半角に変えるのだ。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/2561941272226160919/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=2561941272226160919' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/2561941272226160919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/2561941272226160919'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/wordpress.html' title='wordpressでカテゴリ毎に表示を変えたい場合'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-1565480822476932461</id><published>2008-10-03T19:06:00.002+09:00</published><updated>2008-10-03T19:08:37.447+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><title type='text'>カテゴリごとの表示を分ける方法</title><summary type='text'>これは簡単みたい。http://akaandmore.com/blog/archives/12↑ここを参考にしてみたら、classを分けることができました。あとはcssいじくりまわすだけだ～。がんばるぞ～。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/1565480822476932461/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=1565480822476932461' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/1565480822476932461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/1565480822476932461'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/blog-post_03.html' title='カテゴリごとの表示を分ける方法'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-424354428230137792</id><published>2008-10-03T18:32:00.002+09:00</published><updated>2008-10-03T18:58:46.049+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Modx'/><title type='text'>pieXとDNS設定</title><summary type='text'>wordpressIntegratorを入れてしたかったこと。1,トップページにWordPressのタイトル一覧を作る2,新着情報と日記のカテゴリで記事を投稿し、それぞれを別のページのごとく振る舞わせる。1,に関して。WordPressIntegratorのスニペットコールで表示させようかと思ったら、タイトルだけ！とか、続きを読む、とか件数の設定とかができない模様。さてどうしよう。。。と悩んだ結果、RSSのフィードを読み込んで表示させればいいじゃん、と思いつく。（思いついただけ。仕組みはまだよくわからない）早速、RSSをうまく表示してくれるスニペットを探すと、pieXというよさげなもの発見！http://www.petit-power.com/permalink/piex-v06.htmlこれのv.0.7を使用することに。やり方は↑のページとhttp://www.liolion.info</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/424354428230137792/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=424354428230137792' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/424354428230137792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/424354428230137792'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/piexdns.html' title='pieXとDNS設定'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-946711678874683550</id><published>2008-10-01T16:22:00.002+09:00</published><updated>2008-10-01T16:33:30.629+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='個人的確認'/><title type='text'>確認</title><summary type='text'>どうせ個人メモ。いろいろ確認しておこう。現状web制作見習い・xhtml+cssでなんとか自分の思い描いた形のページは作れる。・ネットに蔓延しているSEOの知識はなんとか仕入れている。・illustratorやphotoshopでwebデザインや画像修整はなんとかしているがセンスがない。・flashは紙芝居的な初歩的な何かは作れる。Actionscriptはまだいじれない。これから目指すものは、ちゃんと自分でも制作ができるwebディレクター（ジェネラリスト的な何か）・まずfedoraを構築してlinuxやらwebサーバやら何やら組めるようになり、トラブルにも対応できるようになる・PHP＋MySqlで考えたことは組めるようになる・PHP＋postgreSqlで考えたことは組めるようになる・FlashはActionScriptも含めできるようになる・Javascriptを使えるようになる。・</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/946711678874683550/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=946711678874683550' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/946711678874683550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/946711678874683550'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/blog-post.html' title='確認'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-2478971974222342850</id><published>2008-10-01T16:07:00.003+09:00</published><updated>2008-10-01T16:21:33.837+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='Modx'/><title type='text'>WordpressIntegrator</title><summary type='text'>今回もはまりまくり・・・。まずwordpress日本語版の2.6.2をインストール。これは驚くほど簡単。今度個人的なサイト構築にも使ってみようかな・・・。そんなことを考えながら、http://nanabit.net/modx/wordpress-integrator.html↑ここでWordpressIntegrator1.2をDLして、指示に従ってプラグインだの、スニペットだのを作っていく。さぁアクセス！ふむ。MODx Parse Errorなんぞ出て怒られる。どうやら、サーバにアクセスしたけどタイムアウトだよ。ば～か！って言われてる。馬鹿って言う方が馬鹿なんじゃぃ！と、誰もバカって言ってないのに泣き怒りしながら原因追究。どうやらWordpress側のファイルに問題がある模様。wp-includesの中のcron.phpに$argyle = @fsockopen('ssl://' . </summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/2478971974222342850/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=2478971974222342850' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/2478971974222342850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/2478971974222342850'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/10/wordpressintegrator.html' title='WordpressIntegrator'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-5314933142755258334</id><published>2008-09-30T15:05:00.005+09:00</published><updated>2008-09-30T15:46:51.552+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Modx'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>modxの移行とかPHPの再コンパイルとか</title><summary type='text'>先日作ったバーチャルホストの一つはお客様が使っているmodxの環境を再現してそれにいろいろつけたり外したり、いじったりいじられたりをしていかないといかんので、まずは、それをすることにする。で、何を思ったのか、ふとpostgresqlを入れたくなってインストール。でもそういやPHPインストールするときにpostgresqlのオプション付けてない・・・。というわけでPHPを再度./configureすることになる。make discleanしてんで./configureオプションは、上書きなのかどうかよくわからんかったので、必要なものは改めて全部書いてスタート。んで順調にmakemake installと相成りましたとさ。さて、modxさね。まずは、客先のmodxのmanager画面でキャッシュをクリア。すかさず、sshで全ファイルをローカルにダウンロード。さらにwebminを使ってsqlの</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/5314933142755258334/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=5314933142755258334' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/5314933142755258334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/5314933142755258334'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/09/modxphp.html' title='modxの移行とかPHPの再コンパイルとか'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-8554382582540851181</id><published>2008-09-29T14:33:00.000+09:00</published><updated>2008-09-30T15:04:59.024+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>バーチャルホスト他</title><summary type='text'>いかん。気を抜いているとここに書くのを忘れてしまう。メモする癖をつけねば。○バーチャルホスト。今回はテスト環境を作っている。簡単に書くと、同僚であり先輩であり師匠のfedoraをDNSサーバにしてクライアント（windowsVISTA）のネットワーク設定でDNSをいじることにより本番サーバとテストサーバを切り替えている。というわけで、詳しいことはまだわかんないがIPベースでバーチャルホストを設定するのが良いということになった。で、IPベースでのバーチャルホストの設定。/usr/local/httpd/config/httpd.conf↑こいつの中の最初の方にListenというの書くところがあるので、そこにListen 192.168.x.xxxListen 192.168.x.yyyという風に二つIPを書く。もちろん他のPCと重複しないように。んで、95行目くらいにVirtualHost</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/8554382582540851181/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=8554382582540851181' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/8554382582540851181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/8554382582540851181'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/09/blog-post_30.html' title='バーチャルホスト他'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-970849329818698988</id><published>2008-09-24T22:09:00.002+09:00</published><updated>2008-09-24T22:17:34.106+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><title type='text'>IPアドレスを複数割り当てる</title><summary type='text'>今回作っているのはテスト環境なので、1台でいろんなサイトが構築できるようにバーチャルホストを設定する必要がある。というわけでfedoraにIPを複数割り当てる方法を模索。はじめ/etc/sysconfig/network-scripts/ifcfg-eth0これに/etc/sysconfig/network-scripts/ifcfg-eth0:1を加えて、そこに2つ目のIPアドレスを書いていた。・・・がeth0:1だけ反映されて、再起動なんぞしようものならwindowsのターミナルからアクセスできなくなってしまう事も。むぅむぅうなりながら試行錯誤しつつ、最終的に学んだものはfedoraが最初に読み込む/etc/rc.d/rc.localこいつにifconfig eth0:1 192.168.xxx.xxx netmask 255.255.255.0↑こいつを書き込むことだった・・・。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/970849329818698988/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=970849329818698988' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/970849329818698988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/970849329818698988'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/09/ip.html' title='IPアドレスを複数割り当てる'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-2010046073333311769</id><published>2008-09-24T14:54:00.005+09:00</published><updated>2008-09-24T22:18:21.964+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><title type='text'>apacheが２つ！？</title><summary type='text'>どうやらapacheが２つ入ってた模様。/etc/httpd/conf/httpd.conf/usr/local/http/conf/httpd.confいろんなサイトを見ながら設定していたら、↑の２つの設定ファイルをな～んも知らずに設定していた模様。/etc～に入っているのはyumで入れたものが多く、通常、ソースからインストールすると/usr/localに入るものらしい。つまりyumでapacheも全部入っていたのか？rpm -qa | grep httpdで、パッケージの有無を確認。rpmで確認できるのはyumでインストールされたパッケージらしい。んで、存在していた、と。man yumで、yumのマニュアル確認。どうやらパッケージの削除はyum removeらしいのでyum remove httpdと入力。消えたみたい。んでソースからインストールしたapacheが起動しているかどうか</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/2010046073333311769/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=2010046073333311769' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/2010046073333311769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/2010046073333311769'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/09/apache.html' title='apacheが２つ！？'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-7643037532761629254</id><published>2008-09-11T12:00:00.004+09:00</published><updated>2008-09-24T22:18:40.131+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><title type='text'>前の続き</title><summary type='text'>何のことはない＜meta equiv="Content-Type" content="text/html; charset=UTF-8"＞↑これを忘れてただけだった。さて次はPHPだね。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/7643037532761629254/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=7643037532761629254' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7643037532761629254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7643037532761629254'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/09/blog-post.html' title='前の続き'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-6111130672582111782</id><published>2008-09-11T11:48:00.004+09:00</published><updated>2008-09-24T22:19:00.354+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><title type='text'>fedora9にてapache設定中</title><summary type='text'>apacheの設定は、いろんなサイト見てやった。んでも、ページ見れない。なぜか。答え：なんだかわかんないけどファイヤーウォール的なものが起動してた。iptableとかいうの。# /etc/rc.d/init.d/iptables stop# /sbin/chkconfig iptables offこの２つやった。ひとまずページは見れた・・・のか？ソース表示するとちゃんとしてるのに、画面まっ白。さてgoogle先生に聞いてみよう。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/6111130672582111782/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=6111130672582111782' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/6111130672582111782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/6111130672582111782'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/09/fedora9apache.html' title='fedora9にてapache設定中'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-8580087374557803797</id><published>2008-01-05T22:07:00.000+09:00</published><updated>2008-01-05T22:49:41.569+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='覚えた'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>知恵熱出そう</title><summary type='text'>まずは言葉からパラメータ＝引数「ひきすう」関数（引数1, 引数2,）みたいな感じ。関数は命令みたいな感じかな。変数は$がついてて、いろんな値を入れることができる箱みたいなもん。◎覚えたことisset(変数)変数が定義されてるかどうか調べる。定義されてる＝値が何かしら入ってたらTRUE、なけりゃFALSEってことらしい。TRUEとかFALSEは条件分岐で便利っぽいよ。A != BAがBじゃないhtmlspecialcharas(言葉)HTMLに影響を及ぼしそうな文字を&amp;とかに変えてくれる便利な方。setlocale(LCTIME, "ja")時間の場所設定strtime("%x")%xにはいろいろ決められた値があるみたい。日時や曜日を文字であらわしてくれるのだ。$file = fopen("ファイル名を相対パスで") or die("ほにゃらら");flock($file, LOCK_EX</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/8580087374557803797/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=8580087374557803797' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/8580087374557803797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/8580087374557803797'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/blog-post_05.html' title='知恵熱出そう'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-5406672544487081808</id><published>2008-01-04T18:18:00.000+09:00</published><updated>2008-01-04T18:20:14.655+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='疑問'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>言葉</title><summary type='text'>変数、関数、パラメータ・・・。使ったことない言葉がいっぱい。こいつぁ困った。でも今日は時間切れ。また明日がんばりましょう。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/5406672544487081808/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=5406672544487081808' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/5406672544487081808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/5406672544487081808'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/blog-post_04.html' title='言葉'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-9014287827944756938</id><published>2008-01-04T17:22:00.000+09:00</published><updated>2008-01-04T17:26:58.199+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='覚えた'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>条件分岐switch</title><summary type='text'>switch (変数) { case 値1:  echo "結果1";  break; case 値2:  echo "結果2";  break; default:  echo "結果3";}変数の値が値1なら結果1を表示、値2なら結果2を表示、どれでもなければ結果3を表示。caseは何個でも作れるみたい。乱数の生成がいまいちまだ理解できてないけど、乱数使えばおみくじとかもできるかも？</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/9014287827944756938/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=9014287827944756938' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/9014287827944756938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/9014287827944756938'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/switch.html' title='条件分岐switch'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-6509604979409161187</id><published>2008-01-04T15:59:00.000+09:00</published><updated>2008-01-04T16:11:25.464+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='覚えた'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>TRUEとFALSE</title><summary type='text'>変数を定義するとき（定義って言葉は合ってんのかわからんけど）、変数の値がゼロや空文字列か、nullであれば、FALSE、ほかはどんな文字でも（たとえばFALSEという文字が入っていたとしても）TRUEらしい。なんにこれらが役に立つかはまた今度かなと。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/6509604979409161187/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=6509604979409161187' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/6509604979409161187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/6509604979409161187'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/truefalse.html' title='TRUEとFALSE'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-5994267855044053502</id><published>2008-01-04T15:46:00.001+09:00</published><updated>2008-01-04T16:13:32.232+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='覚えた'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>条件分岐</title><summary type='text'>if (条件式) {　実行すること}elseif (さらに条件) {　実行すること2}else {　実行すること3}もし条件式がただしかったら「実行すること」を実行。違くて、さらに条件に合ってれば「実行すること2」を実行。それも違かったら「実行すること3」を実行する。ん。これはEXCELの=if(条件,A,B)ってやつと似てるから覚えられるかも。でも省略されると、途端に頭がビックバン。if ($hoge) {　実行すること}ってなってると、$hogeがTRUEなら「実行すること」を実行。TRUEってなんじゃ？藤井フミヤか？我ながら寒いな。んでもEXCELの関数もTRUEだのFALSEだの出てきて、よくわからんくなった。if (!$hoge) {　実行すること}ってなってると、もし$hogeがFALSEなら「実行すること」を実行。つまり、変数の頭に!がきたら「FALSEの場合は」</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/5994267855044053502/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=5994267855044053502' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/5994267855044053502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/5994267855044053502'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/blog-post.html' title='条件分岐'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-7290727285590470725</id><published>2008-01-04T11:37:00.000+09:00</published><updated>2008-01-04T16:13:04.210+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='覚えた'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>whileとfor</title><summary type='text'>while (条件) {　実行すること}条件が合うまで、実行することを繰り返すのです。for (条件とそれに合うまですること) {　それに合わせて表示とか}whileは条件に合うまで繰り返す。forは条件に合うまで何か繰り返すってことを書いて、それに合わせて何をするか書くっぽい。いまいちわかってないのがよくわかる文だ。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/7290727285590470725/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=7290727285590470725' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7290727285590470725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/7290727285590470725'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/whilefor.html' title='whileとfor'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-9082583442051109130</id><published>2008-01-04T11:35:00.000+09:00</published><updated>2008-01-04T16:12:39.979+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='疑問'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>echoとprintって</title><summary type='text'>echoとprintってどう違って、どんな時にどっちをつかえばええんじゃろ？</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/9082583442051109130/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=9082583442051109130' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/9082583442051109130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/9082583442051109130'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/echoprint.html' title='echoとprintって'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5414359661279218222.post-3115145083653731660</id><published>2008-01-04T11:30:00.000+09:00</published><updated>2008-01-04T16:12:10.815+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='覚えた'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>echo print</title><summary type='text'>文字列を表示するのはecho "ほにゃらら";もしくはprint "ほにゃらら";""で囲んだら変数が変数の値として表示される。''で囲んだら、変数は変数の値じゃなくて、変数名で表示される。</summary><link rel='replies' type='application/atom+xml' href='http://kojinteki.blogspot.com/feeds/3115145083653731660/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5414359661279218222&amp;postID=3115145083653731660' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/3115145083653731660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5414359661279218222/posts/default/3115145083653731660'/><link rel='alternate' type='text/html' href='http://kojinteki.blogspot.com/2008/01/echo-print.html' title='echo print'/><author><name>かつぶし</name><uri>http://www.blogger.com/profile/07613875973907567469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
