$url="C:\啊啊\123.gif";
$file=fopen( $url, "rb"); Warning: fopen(C:\啊啊\123.gif) [function.fopen]: failed to open stream: No such file or directory in D:\web\server\ttest\admin\sm_news_mod_ok.php..........
/ \ 都试过问题在哪啊,转换编码也不行请教怎么解决中文路径问题!!
$file=fopen( $url, "rb"); Warning: fopen(C:\啊啊\123.gif) [function.fopen]: failed to open stream: No such file or directory in D:\web\server\ttest\admin\sm_news_mod_ok.php..........
/ \ 都试过问题在哪啊,转换编码也不行请教怎么解决中文路径问题!!
$file=fopen( $url, "rb");
$filename=iconv("UTF-8","Big5",$filename);
$type=mime_content_type($filepath_new);
//echo mime_content_type($filepath_old)." mime_content_type<br/>";
$filepath=$filepath_old;
$my_file = fopen($filepath_new,'r');
$my_file = fread($my_file,filesize($filepath_new));
這是我採用的方法,你看看,將路徑名轉換成WEB服務器的默認編碼類型