$DOCUMENT_ROOT
是你的应用程序的根目录,即web站点的根目录
就是根目录上级目录下的123.txt

解决方案 »

  1.   

    root
     \_www[$DOCUMENT_ROOT]
     \_123.txt
      

  2.   


    $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.