Question for php gurus, masters and caffine sippen coders.

Discussion in 'PHP' started by plat73, Feb 27, 2007.

  1. #1
    Php Newbie, Looking for a script to allow a user to receive his or her own page after registering to my site. example... website name = www.hello.com, user name in registration (user name field) = ralph123. after registration, user's url will be www.hello.com/ralph123

    Results from script should be the same as what happens when you get a myspace page. You have your own editable page based off of a template after you sucessfully complete your registration.

    please help...
     
    plat73, Feb 27, 2007 IP
  2. bluefur

    bluefur Guest

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is free software out there like this:

    barnraiser.org
     
    bluefur, Feb 27, 2007 IP
  3. technoguy

    technoguy Notable Member

    Messages:
    4,369
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    205
    #3
    do you want to give different url or different page (look and feel) to user?
     
    technoguy, Feb 27, 2007 IP
  4. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #4
    i think the easiest way is a mod_rewrite.
     
    falcondriver, Feb 28, 2007 IP
  5. PhatDV

    PhatDV Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Here's a starting point, chuck something like the following into .htaccess:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]
    
    RewriteRule ^(.*) /index.php
    Code (markup):
    What the above rules do is redirect everything that doesn't already exist as a file or directory to /index.php.

    index.php just needs to have code to parse the URL string (look at $_SERVER["REQUEST_URI"]).
     
    PhatDV, Feb 28, 2007 IP