Sign up ×
Server Fault is a question and answer site for 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 to access his full profile

thanks for replues

share|improve this question

migrated from Oct 29 '10 at 1:15

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

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:… – 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

1 Answer 1

Have a look here:

share|improve this answer
+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

Your Answer


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