Blitz Posted October 31, 2006 Report Share Posted October 31, 2006 (edited) Situacija tada: Ir chupa ar failiem kuriem faila nosaukums satur vairakus speisus. Rezultata nevaru stradat ar tiem failiem caur php, jo fiziski nosaukums satur 2 speisus bet php nogriez lidz vienam. Kada butu ertakaa metode, sadu failu parsauksanai izmanotjot php skriptu? Risinajums vaig atri, bet galvaa nekas nenaak :( filename: 1314245%20%200.49%20.JPG Edited October 31, 2006 by Blitz Link to comment Share on other sites More sharing options...
koko Posted October 31, 2006 Report Share Posted October 31, 2006 kaadaa veezii tad tu tos failus savaac? Link to comment Share on other sites More sharing options...
Blitz Posted October 31, 2006 Author Report Share Posted October 31, 2006 koko, failus saveidojis tadus viens cits bugains skripts, ja jautajums bij par to. Link to comment Share on other sites More sharing options...
Delfins Posted October 31, 2006 Report Share Posted October 31, 2006 Esmu pārliecināts, ka PHP neko nenogriež... tev kaut kas tur gļuko Link to comment Share on other sites More sharing options...
Blitz Posted October 31, 2006 Author Report Share Posted October 31, 2006 (edited) funkcija kas nolasa visus failus atgriez faila nosaukumu kaa: 1314245(space)0.49(space).JPG bet fiziski vins tur stav kaa: 1314245(space)(space)0.49(space).JPG tapec kad kautvai parbaudu is_file(1314245(space)0.49(space).JPG) atgriez false =/ Edited October 31, 2006 by Blitz Link to comment Share on other sites More sharing options...
Delfins Posted October 31, 2006 Report Share Posted October 31, 2006 <?php $filename = "fake file 334.txt"; print "is_file($filename) = " . is_file($filename); ?> rezultāts: is_file(fake file 334.txt) = 1 Tā kā skaties pats, tev gļukaina nolasīšana Link to comment Share on other sites More sharing options...
Blitz Posted October 31, 2006 Author Report Share Posted October 31, 2006 ahaaaaa, skaidrs kur tas suns aprakts, paldies. Link to comment Share on other sites More sharing options...
Recommended Posts