原来是因为文件名中带了 - , 改为下划线 _ , ok. windows下没有这个问题。 问题代码 $fp = fopen("forms/access-forbidden.txt","a+"); fwrite($fp,implode( ":" , $array)."\r\n" ); fclose($fp);
$fp = fopen("forms/access-forbidden.txt","a+"); fwrite($fp,implode( ":" , $array)."\r\n" ); fclose($fp);