$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; @$fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt",'ab'); flock($fp, LOCK_EX); if (!$fp){ echo "提交失败