You're looking for torrent script such as rutorrent. It's web based and has an auto tools feature to watch a directory such as one in which files are uploaded via ftp. Once torrent file is uploaded the torrent client starts the download.
thanks...but it's different
i looking for a script that can watch an ftp (glfptd) directory and if there is a new dir (file) create a .torrent file...upload it on the tracker (complete form) and start upload it (torrent)