I didn't quite like my FTP program since I had to make all the settings all over when i restarted the client, so I made this script for simple ftp uploading, its running as a CLI app. <?php //if STDIN isn't defined, define it if (!defined("STDIN")) { define("STDIN", fopen("php://stdin", "r")); } echo "FTP file uploader\r\n\r\n"; echo "Server: "; //trim() all the fgets cause it seams to add a \n $s