タグ

ブックマーク / www.jaisenmathai.com (1)

  • Writing your own URL shortener in 25 lines of PHP :: Jaisen Mathai

    So you want to write a URL shortener? Let’s make it short and painless. You’ll need two pieces: a key generator and redirector. The key generator is used to represent a shortened url with a series of characters, often a-zA-Z0-9. This is what you see at the end of tinyurl and bit.ly links. The redirector needs to link the key to a url and perform a HTTP redirect. Shall we? First things first The s

    matsunaga
    matsunaga 2009/06/23
    短縮URLを作るphpのコード。他の短縮サービスを利用していると、サービス終了時に困る。自前で置きたいと考えていたので参考になる。
  • 1