I want to dump request variables to a file for debugging. How's this possible?
4条回答 默认 最新
- duanjihe5180 2010-07-25 05:53关注
<?php $req_dump = print_r($_REQUEST, TRUE); $fp = fopen('request.log', 'a'); fwrite($fp, $req_dump); fclose($fp);
Untested but should do the job, just change request.log to the file you want to write to.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报