yolop Posted May 15, 2009 Share Posted May 15, 2009 I created a system to upload images in PHP and I want to add this option to upload images via FTP How does it Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/158260-upload-images-via-ftp/ Share on other sites More sharing options...
Thauwa Posted May 15, 2009 Share Posted May 15, 2009 Is this what you mean? http://php.about.com/od/phpwithmysql/ss/Upload_file_sql.htm Quote Link to comment https://forums.phpfreaks.com/topic/158260-upload-images-via-ftp/#findComment-834677 Share on other sites More sharing options...
Adam Posted May 15, 2009 Share Posted May 15, 2009 You could just... search google? http://www.google.co.uk/search?q=php+upload+files+via+ftp Quote Link to comment https://forums.phpfreaks.com/topic/158260-upload-images-via-ftp/#findComment-834678 Share on other sites More sharing options...
yolop Posted May 15, 2009 Author Share Posted May 15, 2009 לא ממש אני צריך כמו באתרי העלאות קבצים שמביאים את הכתובת המלאה של הFTP(סיסמא שם משתמש וכו') וזה ישר מעלה את הקובץ Quote Link to comment https://forums.phpfreaks.com/topic/158260-upload-images-via-ftp/#findComment-834697 Share on other sites More sharing options...
nadeemshafi9 Posted May 15, 2009 Share Posted May 15, 2009 <?php // Connect to FTP server $conn = ftp_connect('ftp.example.com'); if (!$conn) die('Unable to connect to ftp.example.com'); // Login as "user" with password "pass" if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp.example.com'); // Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) { echo "Command executed successfully.\n"; } else { die('Command failed.'); } ?> http://uk3.php.net/manual/en/function.ftp-fput.php use this to up files Quote Link to comment https://forums.phpfreaks.com/topic/158260-upload-images-via-ftp/#findComment-834703 Share on other sites More sharing options...
yolop Posted May 15, 2009 Author Share Posted May 15, 2009 Not really I should like sites supremacy files Bringing the complete address of the FTP (user name password, etc.) and it straight up the file Quote Link to comment https://forums.phpfreaks.com/topic/158260-upload-images-via-ftp/#findComment-834787 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.