Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9

Thread: sub-domains

  1. #1
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default sub-domains

    i want to make a blog sort of site and i want to no if anyone knows how to make the user system so when you sign up, it creates a subdomain with there ser name, with there own folder.

    Any help?

    +rep
    Looking for a good desiner to design a social networking template.

    PM me.

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Not sure on subdomain..I know how to make a folder for them though

    PHP Code:
    mkdir(); 
    Haha

  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    So i would just put that in my register code?

    In the brackets would i put $user in there as the username form field?

    I'll give it a try.

    Still need the sub-domin thing.
    Looking for a good desiner to design a social networking template.

    PM me.

  4. #4
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Say your username variable is $username just do

    PHP Code:
    mkdir("/home/cpanelusername/public_html/$username"0777); 
    I think the function is.

  5. #5
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    where in register would i put it?
    Looking for a good desiner to design a social networking template.

    PM me.

  6. #6
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by Randomer View Post
    where in register would i put it?
    The point where they successfully register?
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  7. #7
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Ty.

    Any advances on the create sub domain?
    Looking for a good desiner to design a social networking template.

    PM me.

  8. #8
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Default

    I'm not too sure I know you can do it as I've seen lots of automatic hosting and billing software that does it.. a cron that runs when sign ups are received or something if you could do that or do it manually? Also try looking at some of the coding in scripts that already have things like that running? Sorry what I just said probably was not much help at all!

  9. #9
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by opensourcehost View Post
    I'm not too sure I know you can do it as I've seen lots of automatic hosting and billing software that does it.. a cron that runs when sign ups are received or something if you could do that or do it manually? Also try looking at some of the coding in scripts that already have things like that running? Sorry what I just said probably was not much help at all!
    Billing programs use WHM to make a hosting account not an ordinary sub-domain on a site. I no how to do i that way but it will waste much more space on my server.

    Thanks for your help anyway
    Looking for a good desiner to design a social networking template.

    PM me.

Posting Permissions

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