The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is this possible with php?

Discussion in 'General Discussion' started by bquast, Jan 8, 2006.

  1. bquast

    bquast Registered

    Joined:
    Jan 8, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Well from researching I cannot really find anything even near this, the only thing that I have seen was a php script with oop and I do not understand it..

    Now I have a script where I allow users to signup for hosting, and after creating a litting modification that allows them to register for a subdomain which I found coding examples for through google, I am now looking for something similar for ftp accounts with php that is, if anyone can help I would be extremely thankful.

    thanks for your time,
    Brett Quast.
     
  2. bquast

    bquast Registered

    Joined:
    Jan 8, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    found out how to do just that, but now my script is slow as hell and doesn't complete, I think that something is wrong here with what I am doing, but I am not sure, I know all the other variables are correct because the subdomain is created..

    Any help would be appreciated.

    PHP:
    $file3 fopen ("http://$cpuser:$cppass@$scripturl:2082/frontend/x/subdomain/doaddftp.html?login=$username&password=$password&homedir=/$username""r");
    if (!
    $file3) {
    $ok FALSE;
    echo 
    "error!";
    }
    while (!
    feof ($file3)) {
    $line fgets ($file31024);
    if (
    ereg ("exists"$line$out)) {
    $ok FALSE;
    echo 
    "";
    }
    }
    fclose($file3);
    if (
    $ok) {
    echo 
    "FTP Account Setup";
    }
     
Loading...

Share This Page