タグ

PHPとcgiに関するishideoのブックマーク (3)

  • QUERY_STRINGを連想配列に入れたい

    $_SERVER['HTTP_REFERER']が対象ならば、以下で、$query_hashに、$_GETと同様のurldecode済みデータがハッシュ配列として得られます。 $url_hash = parse_url( $_SERVER['HTTP_REFERER'] ); if( array_key_exists( 'query', $url_hash ) and strlen($url_hash['query'])>0 ){ parse_str( $url_hash['query'], $query_hash); } // あとは、$url_hash['host'] によって切り分けて検索キー取り出しをすればよいと思います。 $word = ''; if( preg_match ("/\.google\./", $url_hash['host']) ) { $word = $quer

    QUERY_STRINGを連想配列に入れたい
  • CGIの神話と現実 : 404 Blog Not Found

    2006年04月17日18:52 カテゴリLightweight LanguagesLogos CGIの神話と現実 PHPのパフォーマンスに関しては、すでに川合さんのPerlよりPHPの方が軽くて速いは当?が出ていて、これでプロには充分なんだけど、すでにプロのプログラマーを離れて、一般の人でも動的Webページ生成プログラムを書くようになった今、もう一度整理しておいた方がいいかも知れない。 提督の野望 海軍広報: 2006/4/17 PHP たしかにCGIはパーミッションの設定とか面倒なことが多かったし、スピードも遅いから廃れても仕方ないんだけど、じゃあPHPはどのぐらい使いやすいのかね? と思って調べてみた。 誤解その1--CGIはPerlで書かれている まず最初に抑えておきたいのは、CGIは言語の名前ではなく、Webサーバーが外部プログラムにページ生成を依頼する時にどんな情報を渡し、ど

    CGIの神話と現実 : 404 Blog Not Found
  • CGIToolBox

    Meet Generate Password and Number, a simple online tool that does exactly what it says; generates strong passwords and random numbers quickly and easily. Using a strong password lowers the overall risk of a security breach, and it's strength is a measure of the effectiveness against guessing or brute-force attacks. Each password generated by our tool is extremely difficult (~impossible) to guess o

    CGIToolBox
    ishideo
    ishideo 2006/03/24
  • 1