2004-08-04 ========== デュラララ!! / 成田良悟 ------------------------- Reference URI: http://lowreal.net/logs/2004/08/04/1 Written Time: 2004-08-04T01:40:19+09:00 Tags: book 読み終わりー。やばいねこれ。面白かった。内容的に成田良悟的世界のつながりみたいのが あって、「仕掛け」がちゃんと作ってあるから面白い。じわじわ気づき始めたところで丁度 文中に真が出てくるからリズムが乱れないし、てきとーに読んでも混乱しない。いやーこれ ヒット PHP - apache_request_headers() ------------------------------ Reference URI: http://lowreal.net/logs/2004/08/04/2 Written Time: 2004-08-04T02:19:50+09:00 Tags: prog PHP (PHP: Hypertext Preprocessor) で If-Modified-Since を取得したい。apache_request_headers() を使うみたいだけど、関数名に apache とついてる通り Apache モジュールとして動いて いないとこの関数は使えない。自分はローカルテストするとき AnHTTPD+CGI (Common Gateway Interface) 版PHP (PHP: Hypertext Preprocessor) なので普通のコーディングしてテストしようとするとエラーがでる。こりゃどうすりゃい いやら。環境変数には If-Modified-Since とか入ってないような……? CGI (Common Gateway Interface) だと HTTP (Hyper Text Transfer Protocol) ヘッダが取得できないなんて話はないだろうし……わかんねー とりあえず普通の CGI (Common Gateway Interface) と同じように $_SERVER["HTTP_IF_MODIFIED_SINCE"] のようにしてみる…… AnHTTPD が環境変数渡してないってこともありえないこともない……? header("HTTP/1.1 304 Not Modified"); では OK だけど header("Status: 304 Not Modified"); ではダメだった……何故だ。他のとこでステータスコード送るときは大丈夫っぽいのにな ぁ。 関係ないけど lftp ってファイルサイズ見てるんだなぁ? ファイルサイズ変えないとアッ プロードしてくれない。 I want to get If-Modified-Since header on PHP (PHP: Hypertext Preprocessor) . Though one use apache_request_headers() usually, as include `apache' in function name this is only used in mod_php. I us e AnHTTPD + CGI (Common Gateway Interface) PHP (PHP: Hypertext Preprocessor) on localhost, so no function error always happen. How can I do? Environment vari able does not have If-Modified-Since or something like that in it? msxsl | xmllint --------------- Reference URI: http://lowreal.net/logs/2004/08/04/3 Written Time: 2004-08-04T03:19:17+09:00 Tags: web [サイト全体を XML (Extensible Markup Language) + XSLT (XSL Transformations) 化?](my:2004-08-02#s5) の続き。ファイル名から判断して msxsl に突っ込むスクリプトを書く。具体的には index.html.xml というファイルがあったら 2html.xsl を使って index.html に出力するというもの。 書いたはいいとして、何故か実行するたびにエラーがでたりでなかったり……パイプの使い 方を間違っているんだろうかとかなんとか思ったり思わなかったり。 xyzzy で CDATA 領域に -- が奇数個あるとそれ以降ファイルの最後までコメントとみなされて困る…… Sequel of [whole site built by XML (Extensible Markup Language) + XSLT (XSL Transformations) ?](my:2004-08-02#s5). wrote a script which interpret filename and run msxsl. Concretely speaking if index.html.xml exists, use 2html.xsl and output transformed xml to index.html in same directory. オンドゥル 先生 ----------------- Reference URI: http://lowreal.net/logs/2004/08/04/4 Written Time: 2004-08-04T11:12:21+09:00 Tags: net [オンドゥル 先生](http://homepage2.nifty.com/yos~/DJ.htm), [ダディャーナ先生](http://homepage2.nifty.com/yos~/DJ2.htm). まじで笑たー スタスタ -------- Reference URI: http://lowreal.net/logs/2004/08/04/5 Written Time: 2004-08-04T22:56:01+09:00 Tags: self 今日一日どういうスタイル書こうか考えていたけど、全く思いつかず……よく考えると特に テーマがあるってわけじゃないし、なんか根本的に間違っている気がしないでもない。 Thought new idea about my site CSS (Cascading Style Sheets) , but no idea at all. As Anew think it's not to say that my site have a regular t heme, so I feel like I'm wrong fundamentally.