SefaKuru Posted April 8, 2015 Share Posted April 8, 2015 $sefa adında bi değişken var ve her bu değişken çalıştığında siteden dosya indiriyor. $sefa=InetGet("http://localhost/deneme/den.txt",@ScriptDir & "\den.txt") Bu $sefa değişkeni sürekli çalışıyor sürekli çalıştığı süre içindede dosya indirmeyi yapıyor gibi gözüküyor ama yapmıyo :) sadece den.txt dosyasının son değiştirme tarihi değişiyor ve içindeki bilgiler değişmiyor. Kodlarda mı hata var yoksa yanlış fonksiyonları mı kullanıyorum ? Quote Link to comment Share on other sites More sharing options...
MostWanted Posted April 10, 2015 Share Posted April 10, 2015 $sefa=InetGet("http://localhost/deneme/den.txt",@ScriptDir & "\den.txt",1) Sonuna 1 eklemezsen her zaman cache'yi kullanacaktır. 1 seçeneği ise yeniden yüklemeye zorluyor. Diğer seçenekler için help dosyasını inceleyebilirsin. Quote Link to comment Share on other sites More sharing options...
SefaKuru Posted April 11, 2015 Author Share Posted April 11, 2015 Maalesef olmadı yine aynı şekilde metin belgesindeki içerik değişmedi Quote Link to comment Share on other sites More sharing options...
MostWanted Posted April 11, 2015 Share Posted April 11, 2015 Kodun geri kalanında sorun olabilir veya indirme yaptığını sanıp yapmıyorsun olabilir. @error'ları kontrol et.Onun dışında aklıma bir şey gelmiyor. Quote Link to comment Share on other sites More sharing options...
Sscrappy Posted July 24, 2015 Share Posted July 24, 2015 Bu şekilde indirme işleminden önce eski dosyayı silebilirsin. $MyFile = "den.txt" FileDelete(@ScriptDir & "\" & $MyFile) InetGet("http://localhost/deneme/den.txt", @ScriptDir & "\" & $MyFile, 1) 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.