URL and complications

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

URL and complications

Post 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
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Anyone? :(

-Nay
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;)
Post Reply