Answer the question
In order to leave comments, you need to log in
Why cp1251 encoding when using glob function in php?
Hello.
Such a situation, I am trying to select the desired file from a folder (there are a lot of pictures in the folder) according to a specific template: for example
foreach (glob("/путь/тырыпыры_вес*.jpg") as $filename) {
echo "$filename размер " . filesize($filename) . "\n";
}
foreach (glob("/путь/*.jpg") as $filename) {
echo "$filename размер " . filesize($filename) . "\n";
}
Answer the question
In order to leave comments, you need to log in
Because this is Windows, on Linux utf8 and everything is beautiful without crutches, otherwise you can’t do without converting characters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question