タグ

2012年8月10日のブックマーク (3件)

  • PHPでpjaxる - 私の昆布

    前置きがすごい長い記事です。時間無い人は、読まないか後ろから読んでください。 昨日も書いたんですけど、ふることきっ!でpjaxというのを利用しています。 で、その際「PHPでpjaxるにはどうしたらいいかなー」と思いググったら、出なかった。…いや、もしかすると「簡単すぎてまとめるまでもねぇよ!」ってことかも知れないけど、まとめておく。後で学校でも使う予定なので。 pjax? まず、ajaxがあります。知らなかったらググってください。同一ドメインなら非同期に通信してくれるアレです。 そして、「pushState」というものがあります。 HTML5で、「5.4 Session history and navigation」というAPIが追加され、その中に「The History interface - pushState」というものがあるんですが、それです。 この「pushState」は

  • PHP: getallheaders - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: getallheaders - Manual
    sutara_lumpur
    sutara_lumpur 2012/08/10
    便利そう。
  • 乱数を生成する(Math.random)

    Math オブジェクトの静的メソッドである Math.random は乱数を生成し返します。ここでは Math オブジェクトの Math.random メソッドの使い方について解説します。

    乱数を生成する(Math.random)
    sutara_lumpur
    sutara_lumpur 2012/08/10
    #JavaScript Math.random() の仕組みがよく分かりました (*´∀`*)