creating subdomains using php

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

    #1

    creating subdomains using php

    Hi all,


    I have a site called www.Mydomain.com. I would like to offer free
    hoting
    to the people and offer a site with their username like this.
    www.Mydomain.com/user. I want user can upload only one Index.html only.
    Please can any one here tell me how to
    accomplish this using php ?

  • chotiwallah

    #2
    Re: creating subdomains using php



    seo@vbcodehome. com wrote:[color=blue]
    > Hi all,
    >
    >
    > I have a site called www.Mydomain.com. I would like to offer free
    > hoting
    > to the people and offer a site with their username like this.
    > www.Mydomain.com/user. I want user can upload only one Index.html only.
    > Please can any one here tell me how to
    > accomplish this using php ?[/color]

    www.Mydomain.com/user is not a sub domian (that would be
    www.user.Mydomain.com), but just a directory named 'user' in your doc
    root.

    1. have a look at http://www.php.net/manual/ref.filesystem.php to see
    how to work with directories.

    2. think about some login system so people can access only their stuff
    and not other people's

    3. if you want to allow only one file per dir so it's probably best
    just to rename any uploaded file in index.html and copy it to the user
    directory.

    micha

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: creating subdomains using php

      seo@vbcodehome. com wrote:[color=blue]
      > I have a site called www.Mydomain.com. I would like to offer free
      > hoting
      > to the people and offer a site with their username like this.
      > www.Mydomain.com/user. I want user can upload only one Index.html only.
      > Please can any one here tell me how to
      > accomplish this using php ?[/color]

      FWIW,
      <http://groups.google.c om/groups?q=%22cre ating+subdomain s+using+php%22+ group%3Acomp.la ng.php>

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

      Comment

      • Gary L. Burnore

        #4
        Re: creating subdomains using php

        On 1 Jun 2005 00:43:03 -0700, seo@vbcodehome. com wrote:
        [color=blue]
        >Hi all,
        >
        >
        >I have a site called www.Mydomain.com. I would like to offer free
        >hoting
        >to the people and offer a site with their username like this.
        >www.Mydomain.com/user. I want user can upload only one Index.html only.
        >Please can any one here tell me how to
        >accomplish this using php?[/color]

        Depends on your webserver, not php. What webserver are you using?
        --
        gburnore@databa six dot com
        ---------------------------------------------------------------------------
        How you look depends on where you go.
        ---------------------------------------------------------------------------
        Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
        | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
        DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
        | ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
        Black Helicopter Repair Svcs Division | Official Proof of Purchase
        =============== =============== =============== =============== ===============
        Want one? GET one! http://signup.databasix.com
        =============== =============== =============== =============== ===============

        Comment

        Working...