Page 1 of 1

URL and complications

Posted: Thu Nov 18, 2004 2:20 pm
by Nay
Hey, I'm back. I've been knocked over from PHP by school for the past year really. Anyway, I'm on holidays and getting into things again. Okay my question...

I'm developing this blogging service with my friend. I want to give the users the address of 'user.foobar.com' (for example). Instead of foobar.com/user or foobar.com/?user=foo.

1. Is it anyway advantageous/disadvantageous using it instead of the two other ways?

So the other thing is that if I were to use it,

1) How do I automaticly create subdomains when the user signs up. Can I do it by PHP? Or do I have to rely on a script in another language, if so how do I intergrate it with the PHP sign up form.

Another problem that I'm facing is making it work. I will have 'foobar.com/xyzblog/index.php', which are the functions.

For example I want to make:

http://www.foobar.com/xyzblog/index.php ... ge=comment
http://www.foobar.com/xyzblog/index.php ... th=january

to work as:

http://bob.foobar.com/comment
http://bob.foobar.com/archives/january

One other question out of this context. When the user is to post a blog or manage their account. Should I use http or https? I've noticed when it comes to https. I've never used https before so If you do recommend it, enlighten me on it too.

Thanks,

-Nay

p.s: Great to be back

Posted: Fri Nov 19, 2004 5:56 am
by Nay
Anyone? :(

-Nay

Posted: Fri Nov 19, 2004 9:37 am
by timvw
search this forum on subdomains... i've already answered this question in the past ;)

mod_rewrite will allow you to map /users/john to users.php?user=john fe.

https means all data goes over a secured connection instead of plaintext with http. but it doesn't change a thing about how you should code ;)