New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

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.