```
file_put_contents('C:/log.html',' memberid:'.$agentuser["id"].'--- ceng1:'.$ceng1.'<br>',FILE_APPEND);
file_put_contents(APP_PATH.'../log.html',' langSet2:'.$langSet.'<br>',FILE_APPEND);
file_put_contents($_SERVER["DOCUMENT_ROOT"].'./log.html','acid:'.$acid.'---aacid:'.$aacid.'---apid:'.$apid.'---aapid:'.$aapid.'<br>',FILE_APPEND);
file_put_contents($_SERVER["DOCUMENT_ROOT"].'./log.html','zhuanid:'.$whereinfo['zhuanid'].'<br>',FILE_APPEND);
file_put_contents($_SERVER["DOCUMENT_ROOT"].'./log.html','address:'.var_export($address,true).'<br>',FILE_APPEND);
var_export($value,true)
foreach($commissions as $key=>$value){
file_put_contents('C:/log.html','key:'.$key.'--value:'.$value.'<br>',FILE_APPEND);
}
```
## LINUX服务器上部分无$_SERVER变量改用绝对路径
```
$myfile = fopen('/www/wwwroot/shop.12.cq.cn/log.html', "a") or die("Unable to open file!");
$txt = 'DOCUMENT_ROOT'.$_SERVER["DOCUMENT_ROOT"].'is_send_prize:'.$is_send_prize.'-----order_status:'.$common_order_detail->status.'-----currency:'.$currency->name.'-----mall_id:'.$log->mall_id.'<br>';
fwrite($myfile, $txt);
fclose($myfile);
```