Script PHP [ HELP ]

Started by markimpw, November 13, 2016, 11:35:50 PM

Previous topic - Next topic

markimpw

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!!!!

Sandeep

for custom modules/requests you need to contact CWP support

markimpw


Sandeep

developers will give better answer as they need to check it first.