Home >Backend Development >PHP Tutorial >新手fopen函数不知道哪里错了,大神帮忙看下

新手fopen函数不知道哪里错了,大神帮忙看下

WBOY
WBOYOriginal
2016-06-23 13:51:38804browse


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

提交失败

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn