I plan to write a program to automate the web site creation process. I would like to do the following thing:
When user sign up from my web site and click submit, the system will automatic to create a temporary web site for this customer first until the domain has been transferred completed.
Can any one tell me how to create this temporary site automatically? And how to transfer this temporary site to real domain site automatically later?
Sounds like you just want to implement a temp page for new customers. Most control panels can set this up by creating a skeleton directory. Most linux distributions copy all files from the skeleton directory into the new users directory every time a new user is added.
Depending on the control panel you are using, I have read about people using Curl to generate and post forms to their own control panel to simulate the manual account creation process. You could read the retreived output to determine whether it was a success or not. I am not sure how reliable this would be though.