need help any good programmer here also i had cool script you may like using it

Discussion in 'Programming' started by kdhallu, Jan 18, 2010.

  1. #1
    i got a a page by which we can create subdomain in our website

    ok i want to know is there any way that after creating a subdomain(that is a folder created in the file manager)can i automatically put files in that folder anthing like robot

    hope you understand
     
    kdhallu, Jan 18, 2010 IP
  2. Warll

    Warll Peon

    Messages:
    122
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Uh, a folder is not a sub domaim, its just a folder. New sub domains requires dealing with DNS, most effectively using a wild card and handling redirection server side.

    And if you have the files of course there is a way to have a program add files.

    Really it sounds like you don't really know what you want to do.
     
    Warll, Jan 18, 2010 IP
  3. kdhallu

    kdhallu Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    lemme explain

    i am about to create website

    i that when user registers he can get his own profile
    like abc.com/username

    so this has to done automatically
    like putting that profile scripts in that folder

    so can i do that if yes how?
     
    kdhallu, Jan 18, 2010 IP
  4. Str82u

    Str82u Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think I do. You want to place files into a site that is created EVERYTIME one is created. I don't know if this will work for subdomains or now, but add the files you want to the "cpanel3-skel/public_html/" folder. For addon domains it works like a charm, you can even set it to display the new domain, as in "NewDomainName.com is under construction and proudly hosted by us"

    Good luck on that, hope it helps.
     
    Str82u, Jan 19, 2010 IP
  5. kdhallu

    kdhallu Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i didnt find cpanel3-skel/ folder
     
    kdhallu, Jan 19, 2010 IP
  6. Str82u

    Str82u Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You need to be able to get at the cPanel folders, above public_html
     
    Str82u, Jan 19, 2010 IP
  7. kdhallu

    kdhallu Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    [​IMG]


    where is it?
     
    kdhallu, Jan 20, 2010 IP