When a user creates an account on my website, I want to create a ftp account and a directory using php. This way, users can use their own ftp client to login with their username and password that they gave when they created an account and upload files to the directory. What is the best way of doing this? How can i get php to create ftp accounts, corresponding directories, and username and password for ftp login?