1写入文件@$fp=fopen("$DOCUMENT_ROOT/order.txt","ab");if(!$fp){echo"openfileerror";exit;}$outputstring="date:"."\ttire:".$tire."\toil:".$oil."\tspark:".$sparkqty."\n";fwrite($fp,$outputstring,strlen($outputstring));fclose($fp);语法:fopen(filename,mode...
查看全文