I'm running an Apache server with WHM/cPanel. I can create domains with my domain registrar and point them at my nameserver ip's. I can then, in WHM create a new incoming domain and, after propogation, that domain is live and on my server.
However, I want to do this programatically.
Basically, I want my users to be able to point their nameservers to mine in their own domain registrar control panels. Then they can tell me they have done so (in a software module I will write) and I want to be able to programmatically (php if poss) create that incoming domain on my server in a similar way that WHM does it.
I don't need all the stuff that WHM creates (ftp etc...) - That domain simply needs a named directory and one file in that directory - That's all (and I can already create those with php). I just need to know how to set up that incoming domain.
Any help would really be appreciated.