1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

URL Mapping !!

Discussion in 'PHP' started by Bhullarz, Sep 13, 2008.

  1. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    Hi ! how to map url in php ?

    if the url is given:
    Code:
    www.example.com/e2
    I want that a PHP page should receive e2 as parameter. Is it possible in PHP ?
     
  2. codestorm

    codestorm New Member

    Joined:
    May 20, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    You'll need to use mod_rewrite, google for mod_rewrite.
     
  3. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    I think its server dependent. But usually free Hosting services don't provide such features. I am thinking of a function, a string function to do so. whenever i prepare this, i will post it here. Till then, if anybody have any other idea, please come and post here. thanks anyways.
     
  4. codestorm

    codestorm New Member

    Joined:
    May 20, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India

Share This Page