PHP scandir returns incorrect filenames -
scandir(some path) giving incorrect filenames.
when ls of folder, results
selected0_ljrnxtmpxn4_0:0:0.mp4 selected8054_ydzl86snmag_0:2:32.mp4 selected10_ijtkxi6wmbo_0:2:20.mp4 selected8056_jgabbaxqsk8_0:3:40.mp4 however, scandir returning following:
s4xfwk~b.mp4 sdtp6p~d.mp4 shtyf1~m.mp4 sx8wca~j.mp4 i have double , triple checked make sure ls-ing , scandir-ing same folder. why scandir not returning correct filenames?
update: machine running scandir windows server 2008 enterprise, machine files stored on running fedora 20, disk type fuse.glusterfs
found answer. filenames when viewed linux system had colon : in them, isn't valid windows filename, replaced 8.3 names.
Comments
Post a Comment