I am doing my project implementation in localhost Xampp installation
Part of my project is ,
When the user sign up on my page he will be asked for his desired sub domain and from then on his URL will be :
chosensubdomain.mysite.com
Everything works perfectly , except for sub domain i have to manually add the entries in windows host file as follows
127.0.0.1 chosensubdomain.mysite.com abc.mysite.com xyz.mysite.com
What i want was when the form submits the host file should be added up with a entry
I am not sure that whether it is possible to make entry in Windows Host file programmatically using PHP .
Kindly help me out with this mates ...