Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
show 1 more comment

1 Answer

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 G. Vicario 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
add comment

Your Answer

 
discard

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