Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2004
    Posts
    54
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Get folder name from URL

    I'm working on a website - and it is going to have member profiles. I was wanting to set up url addresses for the users like:

    my.website/username

    But for the script to work I need to pull the username from after the slash and tell the script to use it to retrieve the profile.

    I'm sure it's a pretty simple thing - but could someone help me out?!

    Thanks in advance!!

    S!

  • #2
    Regular Coder devinemke's Avatar
    Join Date
    Dec 2004
    Location
    NYC
    Posts
    443
    Thanks
    0
    Thanked 12 Times in 11 Posts
    if you are using apache then you should look at mod_rewrite

  • #3
    New Coder
    Join Date
    Sep 2004
    Posts
    54
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hey thanks! I actually already figured that out after much searching - and it was just what I needed!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •