Forum Moderators: coopster

Message Too Old, No Replies

New user register, then how to create a user page based on username ?

for example: username is akhello1 , it will create mydomain.com/akhello1

         

akstar

12:51 pm on Feb 16, 2009 (gmt 0)

10+ Year Member



Hi Guys,

First step, the user will register. He will put in Username, Password, Address, Email and etc..

Then, once he registers,
It will create a unique page for him on my domain name.

For example, if the user puts akhello1 as his username,
PHP will create a page on mydomain.com/akhello1.
and it will display all his details at mydomain.com/akhello1

Any idea how to go about this ?

Thanks so so much for the kind advice and help.
I appreciate it a lot!
Thanks guys!

akstar

1:06 pm on Feb 17, 2009 (gmt 0)

10+ Year Member



anyone have any idea ?
Thanks

coopster

1:16 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, akstar.

There are a number of ways to approach this and my advice would be to really read up on on this is done, security implications etc. before you plunge in and go live with your server and applications.

The Apache documentation might be a good place for you to start reading about user directories.

trigoon

1:18 pm on Feb 17, 2009 (gmt 0)

10+ Year Member



It really comes down to knowing PHP and MySQL and some htaccess.

You have to design a script where when a user signs up a new entry is made into the mysql database. Then make a new script and call it say blah.php. In that script use $_GET[] to get some variable from the URL like the user id. Then when someone visits that page you would get the data from mysql and display something from it.

Using htaccess you could mask the url so instead of example.com/blah.php?id=1 it could be example.com/1.html etc.

akstar

1:38 pm on Feb 17, 2009 (gmt 0)

10+ Year Member



wow...
seems pretty complicated...
thanks for the advice guys