小编Exe*_*ssa的帖子

使用 md5_file() 函数并在文件名上加上重音符号

在我的 PHP 脚本中,我使用md5_file()函数为每个分析的文件返回一个 md5 密钥。

\n\n

但是,当文件名中包含重音符号时,md5_file()函数无法读取该文件。

\n\n
//filename: Flash_Conqu\xc3\xaate_Galactic.txt\nWarning: md5_file(.....): failed to open stream: No such file or directory in\n
Run Code Online (Sandbox Code Playgroud)\n\n

我尝试使用该iconv()功能或utf8_encode()函数,但两者都完全没有结果。

\n\n

有没有办法在不修改文件名的情况下解决这个问题?

\n

php

5
推荐指数
1
解决办法
447
查看次数

标签 统计

php ×1