新手fopen函数不知道哪里错了,大神帮忙看下
程序员文章站
2024-01-27 12:38:16
...
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
@$fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt",'ab');
flock($fp, LOCK_EX);
if (!$fp){
echo "
@$fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt",'ab');
flock($fp, LOCK_EX);
if (!$fp){
echo "
提交失败