Windows为什么需要`utf8_decode`文件名才能使`file_get_contents`工作?

Windows为什么需要`utf8_decode`文件名才能使`file_get_contents`工作?,第1张

Windows为什么需要`utf8_decode`文件名才能使`file_get_contents`工作?

最好的方法是检测您是否使用Windows服务器。由此您可以应用正确的命令

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {    echo 'This is a server using Windows!';} else {    echo 'This is a server not using Windows!';}


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/4981940.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-14
下一篇2022-11-14

发表评论

登录后才能评论

评论列表(0条)

    保存