[ol][*]$file_dir=\"upload/\".$ty_code.\"/\".$fileName; [*]$fp = fopen($file_dir, \'r\');[*]? ?? ???while(!feof($fp)){[*]? ?? ???$in=fgets($fp);[*]? ?? ?? ?? ?? ? echo? ?$in;? ?? ?? ?? ?? ? [*]? ?? ???}[*]? ?? ???fclose($fp);??[*] $out = mb_convert_encoding($in, \'UTF-8\', \'UNICODE\');[/ol]这样的结果是只能输入一行数据
[ol][*]? ?1. $file_dir=\"upload/\".$ty_code.\"/\".$fileName;[*]? ?2. $fp = fopen($file_dir, \'r\');[*]? ?3.? ?? ?? ?while(!feof($fp)){[*]? ?4.? ?? ?? ?$in=fgets($fp);[*]? ?5.? ?? ?? ?? ?? ???echo? ?$in.\"\";? ?? ?? ?? ?? ?[*]? ?6.? ?? ?? ?}[*]? ?7.? ?? ?? ?fclose($fp);??[*]? ?8. $out = mb_convert_encoding($in, \'UTF-8\', \'UNICODE\');[/ol]è¿æ ·å¯ä»¥è¾å
¥å
¨é¨æ¾ç¤ºãä½æ¯è½¬ç¼ç å为乱ç
温馨提示:答案为网友推荐,仅供参考