sameddeger Posted October 31, 2012 Share Posted October 31, 2012 Arkadaşlar gonderilecek isimli klasorde ki dosyaları autoit script aracılığıyla hosta göndermek istiyorum. Gönderim yapıyor. Sorun şurada ki gonderilecek isimli klasörde ki for ile listeleyip gönderiyorum ve hepsini bir kerede gönderiyor! Oysaki tek tek atması lazım. Bu döngü için nasıl bir bekletme yapmalıyım: [CODE] func yukle() $server = 'ftp.byethost7.com' $username = 'b7_11638335' $pass = '*****' $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $dosyalar = _FileListToArrayEx("gonderilecek/"); For $i = 1 to UBound($dosyalar)-1 $Ftpp = _FtpPutFile($Conn, "gonderilecek/"&$dosyalar[$i], 'htdocs/'&$dosyalar[$i]) Next $Ftpc = _FTPClose($Open) EndFunc [/CODE] Quote Link to comment Share on other sites More sharing options...
blackman12 Posted October 31, 2012 Share Posted October 31, 2012 1. önerim ftp bağlantısını fonksiyon içinde değil global olarak tanımlaman.Yalnızca dosya Upload işlemlerini fonksiyonla yürütmen daha doğru olur. Ayrıca iki dosya yüklemesi arasında yaptırmak istediğin nedir? Progress gibi birşey mi yapmak istiyosun? Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.