Leelakh Ran wrote:
> 
> 
> Hi,
> 
> Cpanel 11 provides facility to create Subdomains on different folder.
> 
> If I want to create one.mydomain.com, I can host it under zzzz/one or any
> other folder.
> 
> When I passed it through cpanel SubDomain creation form it generating an URL
> like below:
> 
> http://mydomain.com:2082/frontend/sg/subdomain/doadddomain.html?domain=one&r 
> <http://mydomain.com:2082/frontend/sg/subdomain/doadddomain.html?domain=one&r>
> ootdomain=mydomain.com&dir=public_html%2Fzzzz%2Fone
> 
> Later I changed 'one' to 'two' from this URL and run it. So I got another
> SubDomain as two.mydomain.com hosting at zzzz/two folder. I got this
> SubDomain without passing data through cpanel SubDomain creation form.
> 
> Now I need to create several hundreds of Subdomains under my main domain. I
> can make above type URL by using spreadsheet program such as excel. But
> getting executed these URL one by one will take more time and effort. I
> expect it can be run through some php scripts.
> 
> I expect experts support on this issue.
> 
> With thanks in advance,
> Leelakh Ran.
> 

I don't think you will be able to do what you are hoping for. I have 
never worked with Cpanel, however I am pretty sure opening the link 
without logging in first will do nothing but give you a session error.

If somehow they don't authenticate the user when clicking on the link 
(which would be a security nightmare), you could do something like this:

$num = array('one','two','three','four');
$url1 = 
'http://mydomain.com:2082/frontend/sg/subdomain/doadddomain.html?domain=';
$url2 = '&rootdomain=mydomain.com&dir=public_html%2Fzzzz%2Fone';
foreach($num as $n){
   $f = fopen($url1.$n.$url2,'r');
   fclose($f);
}

Good Luck,

bp

Reply via email to