Answer the question
In order to leave comments, you need to log in
How to specify a file name in Cyrillic and an address in PHP?
Good time!
I download files using PHP from the site. Tell me, please:
1. Now I fold like this
$ble=realpath(__DIR__)."\\"."temp"."\\".$title;
file_put_contents($ble, $file);
Naturally, it saves to the folder with the script. How to specify the address C:\temp\1 for example? R"R"SJ RIRёRSP°There is a problem with the encoding, how to fix it?
Answer the question
In order to leave comments, you need to log in
The script will then work for you on Linux, and there will be no problems with encodings, no additional steps need to be taken. But this is the wrong approach.
When saving files, just change the names.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question