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");
| Attachment | Size |
|---|---|
| cpsubdomain2.zip | 17.87 KB |
. Please move around this site and enjoy and also don't forget to send me a feedback.
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