<?php
require_once 'test中文.php';
C:\ WNMP \ PHP \的php.exe C:\ WNMP \ HTML \临河\ test0.phpPHP的包括中国名
PHP Warning: require_once(test中文.php): failed to open stream: No such file or directory in C:\Wnmp\html\linhe\test0.php on line 4
PHP堆栈跟踪:
PHP 1. {main}() C:\Wnmp\html\linhe\test0.php:0
PHP Fatal error: require_once(): Failed opening required 'test中文.php' (include_path='.;C:\Wnmp\php\pear') in C:\Wnmp\html\linhe\test0.php on line 4
PHP堆栈跟踪:
PHP 1. {main}() C:\Wnmp\html\linhe\test0.php:0
处理完成退出代码255
我知道的东西: test中文.php是一个空白文件;
与梨没有关系。
包括英文文件名是好的!
谢谢!
是的!我试过$ s ='test中文.php'; $ s = mb_convert_encoding($ s,'GB2312'); require_once $ s; – 2014-12-04 05:54:32
嗨,请问另一个问题,我怎么知道os文件系统的字符集!谢谢 – 2014-12-04 09:15:15
功能编码($ file_name){ if('WINNT'== PHP_OS) return mb_convert_encoding($ file_name,'GB18030'); return $ file_name; } – 2014-12-04 09:39:01