How do I use filesystem functions in PHP, using UTF-8 strings?
I can’t use mkdir
to create folders with UTF-8 characters:
I can’t use mkdir
to create folders with UTF-8 characters:
I’m trying to create a directory on my server using PHP with the command:
PHP’s mkdir function only returns true and false. Problem is when it returns false.
If parents is true, any missing parents of this path are created as
needed; they are created with the default permissions without taking
mode into account (mimicking the POSIX mkdir -p command).
If exist_ok is false (the default), an FileExistsError is raised if
the target directory already exists.
Is there a linux command that I’m overlooking that makes it possible to do something along the lines of:
(pseudo)