您的位置:首页 > 编程语言 > PHP开发

php ajax debug method -- make log in a text file

2009-12-02 22:18 513 查看
log into file

//
ob_start();
echo "<pre>";
print_r($data);
echo "</pre>";
$a=ob_get_contents();
//DAL::remove("insert into mytest(vvv) values('$a')");
$filename = "file.txt";
$file = fopen($filename, "w");      //open file
fwrite($file, $a);                  //first line
fclose($file);                      //close
ob_end_clean();
//
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐