日期:2014-05-16 浏览次数:20680 次
$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);