Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - markimpw

Pages: [1]
1
PHP / Script PHP [ HELP ]
« on: November 13, 2016, 11:35:50 PM »
I need a Script PHP, to create email and subdomain automatic.

Sorry my bad english, I'm from Brazil.

Example cPanel script I'm using (E-mail ):

<?php

$cpuser = 'xxx'; // Name of user cPanel
$cppass = 'xxx'; // Pass of cPanel.
$cpdomain = 'localhost'; // IP cPanel
$cpskin = 'x3';  // Skin cPanel


$epass = 'xxx'; // pass email
$edomain = 'localhost.com'; // domain email
$equota = 250; // quote email

?>

Create Email Account:

 $f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");

 

And Now Example i'm using for create subdomain:

$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/subdomain/doadddomain.html?domain=$Subdominio&rootdomain=mydomain&dir=public_html%2F$Subdominio", "r");

 

Can you help me for this? THANKS SO MUCH!!!!

Pages: [1]