Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

wo, is there a way to create subdomains only through a php file ?

like create a function call createsubdomain($username) or something?

that would really be helpful in the sense that as soon as a user registers himself on a website, he gets to access hisname.thewebsite.com to access his full profile

thanks for replues

equatorlounge.wordpress.com

share|improve this question

migrated from stackoverflow.com Oct 29 '10 at 1:15

This question came from our site for professional and enthusiast programmers.

1  
That depends totally on your web server setup – Pekka 웃 Oct 28 '10 at 11:15
    
off-topic, better fit to server fault but not in this form, voting to close – Svisstack Oct 28 '10 at 11:16
    
related: stackoverflow.com/questions/4042301/… – Svisstack Oct 28 '10 at 11:16
    
possible duplicate of How to let PHP to create subdomain automatically for each user? – Gordon Oct 28 '10 at 11:19
    
@Svisstack the question is not about recursion ;) – Gordon Oct 28 '10 at 11:23

Have a look here:

http://stackoverflow.com/questions/183928/how-to-let-php-to-create-subdomain-automatically-for-each-user

share|improve this answer
2  
+1 You managed to find a great answer for a terribly vague question :) – Álvaro González Oct 28 '10 at 11:17
    
Should have been a comment (or even better a closevote (for which you dont have the reputation yet, but anyway)) – Gordon Oct 28 '10 at 11:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.