Jump to content
php.lv forumi

multiple space handling in filename


Blitz

Recommended Posts

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 by Blitz
Link to comment
Share on other sites

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 by Blitz
Link to comment
Share on other sites

×
×
  • Create New...