Author Topic: Script PHP [ HELP ]  (Read 7684 times)

0 Members and 1 Guest are viewing this topic.

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

Offline
*****
Re: Script PHP [ HELP ]
« Reply #1 on: November 14, 2016, 03:49:52 PM »
for custom modules/requests you need to contact CWP support

Offline
*
Re: Script PHP [ HELP ]
« Reply #2 on: November 15, 2016, 04:20:54 AM »
okay, but it's possible?

Offline
*****
Re: Script PHP [ HELP ]
« Reply #3 on: November 16, 2016, 04:11:40 PM »
developers will give better answer as they need to check it first.