Hello,
Every time a new customer registers for a new hosting plan, we send him an automatic email confirmation for the creation of his hosting plan and siteworx account.
Before, to allow him to access right now to his web site, we told him to update his /host file
Now as we can use adresse ip/~account_name we plan to upgrade our mail to give this method.
We use API to create siteWorx account, so we have a lot of informations as the IP and the domain name. But we don’t have the account name.
We do have to define it from the domain name, exactly as iworx do.
We have created a litlle PHP script to define from a domain name the account name
$domain=‘titi_50.com’;
$delete = array("_", “-”, “.”);
echo $result = substr(str_replace($delete, “”, $domain),0,8);
so domain = titi50co
It works fine, but we’d like to be sure this is enough.
Not sure if iworx allows numeric data in the account name ?
is there others $delete chars to add than “-” “_” “.” ?
Thanks for your comments
Pascal