how do I ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tarscher@gmail.com

    how do I ...

    Hi all,

    I want to create a website (www.example.com) where people kan get
    create an account. The account gives them access to
    accountname.exa mple.com or www.accountname.com (if available).

    My question is: Can I change the ww.example.com with
    accountname.exa mple.com or www.accountname.com?
    eg. http://www.example.com/index.php?account=tarscher&q=new ->
    http://tarscher.example.com/index.php?q=new or


    I hope my question is clear... Maybee I better ask this question to my
    webhoster?

    Best regards
    Stijn

  • Jon

    #2
    Re: how do I ...

    Well, if you wanted it to be www.accountname.com you'd have to setup
    separate hosting and domain registration each time. That's not a very viable
    method. As far as making them get a subdomain, so accountname.exa mple.com,
    you'd have to make sure your host allows sub domains, as well as finding any
    additional cost. Also, I don't know of a way you could make this automated
    using PhP at all - Generally, you'd have to go into your Hosting Control
    Panel and manually setup sub domains. This doesn't sound like anything that
    PhP can resolve for you.

    <tarscher@gmail .com> wrote in message
    news:1137596851 .259695.204780@ z14g2000cwz.goo glegroups.com.. .[color=blue]
    > Hi all,
    >
    > I want to create a website (www.example.com) where people kan get
    > create an account. The account gives them access to
    > accountname.exa mple.com or www.accountname.com (if available).
    >
    > My question is: Can I change the ww.example.com with
    > accountname.exa mple.com or www.accountname.com?
    > eg. http://www.example.com/index.php?account=tarscher&q=new ->
    > http://tarscher.example.com/index.php?q=new or
    > http://www.tarscher.com/index.php?q=new
    >
    > I hope my question is clear... Maybee I better ask this question to my
    > webhoster?
    >
    > Best regards
    > Stijn
    >[/color]


    Comment

    • NC

      #3
      Re: how do I ...

      tarscher@gmail. com wrote:[color=blue]
      >
      > I want to create a website (www.example.com) where people kan get
      > create an account. The account gives them access to
      > accountname.exa mple.com or www.accountname.com (if available).
      >
      > My question is: Can I change the ww.example.com with
      > accountname.exa mple.com or www.accountname.com?[/color]

      These are two separate questions. Let me answer them one at a time.

      In order to create a new domain (e.g., accountname.com ) you must
      register it, which takes a few days to process and involves paying a
      fee to a domain registrar. Additionally, the domain name your user
      wants may already be taken.

      Creating subdomains (e.g., accountname.exa mple.com) is in fact very
      possible, but you need to be able to change your HTTP server's
      configuration file(s), which implies root access privileges. The
      Apache manual has a section on virtual hosting:



      Cheers,
      NC

      Comment

      • Default User

        #4
        Re: how do I ...

        Jon wrote:
        [color=blue]
        > <tarscher@gmail .com> wrote in message
        > news:1137596851 .259695.204780@ z14g2000cwz.goo glegroups.com.. .[color=green]
        > > Hi all,
        > >
        > > I want to create a website (www.example.com) where people kan get
        > > create an account. The account gives them access to
        > > accountname.exa mple.com or www.accountname.com (if available).[/color][/color]
        [color=blue]
        > Well, if you wanted it to be www.accountname.com you'd have to setup
        > separate hosting and domain registration each time. That's not a very
        > viable method. As far as making them get a subdomain, so
        > accountname.exa mple.com, you'd have to make sure your host allows sub
        > domains, as well as finding any additional cost. Also, I don't know
        > of a way you could make this automated using PhP at all - Generally,
        > you'd have to go into your Hosting Control Panel and manually setup
        > sub domains. This doesn't sound like anything that PhP can resolve
        > for you.[/color]


        On the whole, I'd say a solution like:

        www.example.com/accountname would be a lot better.

        It's something that can be done easily and instantly (if that's
        desired) with available PHP features. All you have to do is create a
        new directory, copy in any base files, and set up some sort of access
        control (.htaccess/.htpasswd works for a simple method).

        Obviously you may want have an approval step, there are means for doing
        that.



        Brian

        Comment

        • R. Rajesh Jeba Anbiah

          #5
          Creating sub-domains (Was Re: how do I ...)

          tarscher@gmail. com wrote:[color=blue]
          > I want to create a website (www.example.com) where people kan get
          > create an account. The account gives them access to
          > accountname.exa mple.com or www.accountname.com (if available).
          >
          > My question is: Can I change the ww.example.com with
          > accountname.exa mple.com or www.accountname.com?
          > eg. http://www.example.com/index.php?account=tarscher&q=new ->
          > http://tarscher.example.com/index.php?q=new or
          > http://www.tarscher.com/index.php?q=new[/color]
          <snip>

          FWIW, <news:110555226 8.275216.190760 @z14g2000cwz.go oglegroups.com> (
          http://groups.google.com/group/comp....7df45e3754ea0b )

          --
          <?php echo 'Just another PHP saint'; ?>
          Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

          Comment

          Working...