Class :: cPanel Subdomain V2

Class :: cPanel Subdomain V2

This is the 2nd edition of my previous Class cPanel Subdomains Creator. Using this script you can create cPanel subdomain & FTP account for this subdomain without logging into cPanel. Let your user create their own subdomains and FTP accounts for that subdomain. Users will get access only to newly created subdomain not to the root directory. So your contents will be secure.

To use this script you must have access to cPanel.

Open exaple.php file and change the red marked values as your environment.

$cpanel=new cpsubdomain("cPanel User","cPanel Pass","Domain","cPanel Theme");

For example:

$cpanel=new cpsubdomain("mysite","12345","mysite.com","x");

Now change the Quota for each FTP account. To do this simply change the red marked value.

echo $cpanel->createFTP($_POST['subdomain'],$_POST['ftppass'],"20");

AttachmentSize
cpsubdomain2.zip17.87 KB

Dear Tejas, Not a bad idea.

Dear Tejas,
Not a bad idea. If you want, I may make such script for you. Mail to if you are interested.

Thanks

Hello, I just go through

Hello,

I just go through this script but is there any other script to create Domain or Parked Domain without entering in cPanel?

If is there then guide me to reach this functionality.

Thanks & Waiting for your reply,

TEJAS

Very Nice Thanks

Very Nice

Thanks

Hello The original script

Hello
The original script has a way to add subdomains from file. Is there a way to do this from this script??
thanks
techtac

please check whether the

please check whether the username for FTP is already used. bcoz it will try to create ftp on the same name of subdomain. also check your ftp accounts quota.

thanks

:) Hello nice script, but I

:) Hello nice script, but I got into this error:

Subdomain created successfully
There may be some error while creating FTP account.

What can be the reason?

very good

very good

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div><img>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Use the special tag [adsense:format:group:channel] or [adsense:flexiblock:location] to display Google AdSense ads.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
4 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Powered by Drupal - Design by artinet