时间:2021-07-01 10:21:17 帮助过:4人阅读
$DOCUMENTROOT = $_SERVER['DOCUMENT_ROOT'];
$file = fopen("$DOCUMENTROOT/php_02/123.txt","wb");
fwrite($file,"line 1 "."\n"." line 2 n line 3");
fclose($file);
$DOCUMENTROOT = $_SERVER['DOCUMENT_ROOT'];
$file = fopen("$DOCUMENTROOT/php_02/123.txt","wb");
fwrite($file,"line 1 "."\r\n"." line 2 n line 3");
fclose($file);