dynamic pages without using $_GET?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tomwans@gmail.com

    #1

    dynamic pages without using $_GET?

    how do websites such as last.fm have dynamic pages when they dont use
    the standard $_GET url? for example, a dynamic page is generated from
    last.fm/users/drpolish, which looks alot cleaner than something like
    last.fm/users?username= drpolish

    just put me in the right direction,
    tom

  • Michael Fesser

    #2
    Re: dynamic pages without using $_GET?

    ..oO(tomwans@gm ail.com)
    >how do websites such as last.fm have dynamic pages when they dont use
    >the standard $_GET url? for example, a dynamic page is generated from
    >last.fm/users/drpolish, which looks alot cleaner than something like
    >last.fm/users?username= drpolish
    >
    >just put me in the right direction,
    There are many different ways to achieve that. For example you can use a
    single script to parse the URL and handle all incoming requests (usually
    called a "front controller"), another very common way is to use Apache's
    mod_rewrite to rewrite the URL before passing it to the PHP interpreter.

    Micha

    Comment

    • tomwans@gmail.com

      #3
      Re: dynamic pages without using $_GET?

      On Jun 17, 1:44 pm, Michael Fesser <neti...@gmx.de wrote:
      .oO(tomw...@gma il.com)
      >
      how do websites such as last.fm have dynamic pages when they dont use
      the standard $_GET url? for example, a dynamic page is generated from
      last.fm/users/drpolish, which looks alot cleaner than something like
      last.fm/users?username= drpolish
      >
      just put me in the right direction,
      >
      There are many different ways to achieve that. For example you can use a
      single script to parse the URL and handle all incoming requests (usually
      called a "front controller"), another very common way is to use Apache's
      mod_rewrite to rewrite the URL before passing it to the PHP interpreter.
      >
      Micha
      wow thanks dude

      Comment

      Working...