$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; @ $fp = fopen("$DOCUMENT_ROOT/../_test/orders.txt", 'ab');flock($fp, LOCK_EX); if (!$fp) { echo '<p><strong> Your order could not be processed at this time. ' .'Please try again later.</strong></p></body></html>'; exit; } 出现如下的提示:Warning: flock() expects parameter 1 to be resource, boolean given in d:\apache group\Apache\htdocs\_test\processorder.php on line 66Your order could not be processed at this time. Please try again later.
\_www[$DOCUMENT_ROOT]
\_123.txt
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
@ $fp = fopen("$DOCUMENT_ROOT/../_test/orders.txt", 'ab');flock($fp, LOCK_EX); if (!$fp)
{
echo '<p><strong> Your order could not be processed at this time. '
.'Please try again later.</strong></p></body></html>';
exit;
}
出现如下的提示:Warning: flock() expects parameter 1 to be resource, boolean given in d:\apache group\Apache\htdocs\_test\processorder.php on line 66Your order could not be processed at this time. Please try again later.