Shroder
11-05-2003, 10:33 AM
Right now I'm trying to gain the ability to create/delete ftp accounts using php.
Now the client I'm working for has a webhost that runs cpanel. So I'm wondering if there is any easy way to create/delete an ftp account through cpanel using an external script.
Host Ultra
11-05-2003, 02:21 PM
fopen("http://user:password@localhost:2082/frontend/x/ftp/doaddftp.html?login=PUTFTPUSERNAMEHERE&password=PUTPASSWORDHERE&homedir=/PUTFTPUSERNAMEHERE");
:)
Shroder
11-05-2003, 02:24 PM
Thank you. I'll try that. I noticed that cpanel has some functions you an use too. Do you know anything about those?
Host Ultra
11-05-2003, 02:28 PM
Specifically what function?
You can find more info at http://forums.cpanel.net/
Something I should have said before:
Be careful who you give out ftp accounts to, just because FTP locks them in their directory does not make it secure!
They can still upload a php or cgi script and use that to read and write to your public_html folder!