Adding Domains To WHM With PHP
I was IMing with one of my friends who just recently started internet marketing last night and I couldn’t believe it when he told me that he was spending all his time adding domains to his server by hand.
I remember when I first started (after all, it wasn’t that long ago) and I was doing everything by hand. You soon realize that what you’re doing won’t scale and that you have to start automating the tedious, mindless steps in your process.
Once you start automating one or two things you start to see how powerful it is. What used to take you hours now takes you minutes (or seconds) and you can use that time to work on something else.
You can see the script that I sent my friend to add domains to WHM with PHP here.
It’s pretty simple, especially if you already read and understood my post detailing how to submit forms with PHP.
If you don’t know what WHM is, it stands for Web Hosting Manager and it’s the control panel most hosts give you with a reseller package or dedicated server.
The script reads in your new domain names, which you have to put in a text file called “domains.txt” with each domain on its own line. Don’t put the http:// or www. in front of the domains in the file. In other words use wagerank.com instead of http://www.wagerank.com.
The script then generates a username based on the characters in the domain and submits the form to add the domain. Running this script will increase your server load time, so don’t do it during times when your server is getting alot of traffic.
Related Posts
The Value of Top Level Domains
Move Over Content! Value Is The New King.
Tools
.CN Domains No Longer Working in Google
GoDaddy Is Going To Kill Me

thx bro
will save lot of time by this simple script
Thanks for this! It’s a life saver! Something I learned when I used it was how helpful the skeleton directory can be especially when creating a lot of accounts. Thanks again!