Creating FTP account in cpanel and DirectAdmin via php

This project received 2 bids from talented freelancers with an average bid price of $24 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$10 - $15 USD
Total Bids
Project Description

I have two PHP scripts
one for CPanel and one for Directadmin to create user account via PHP

The code for Cpanel is

I want to add FTP account in the created new account which will be redirected to /public_html just before the line
echo "Done";

I just would like to know how to do so ?

Now for directadmin the script is like this

$url= "https://$server_login:$server_pass@$server_ip:2222/CMD_API_ACCOUNT_USER?username=$username&email=$email&passwd=$upass&passwd2=$upass&domain=$domain&package=plan&ip=$server_ip&add=Submit&action=create";
$result = file_get_contents($url);

echo "Done";

The same question how to add FTP account in the created new account before echo "Done"; ?

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online