Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: userac723
Added: Oct 12, 2018 2:34 AM
Views: 1
Tags: no tags
  1. $fp = fopen($_SERVER["DOCUMENT_ROOT"].'/Logs/dogpre_app_' . date('Ymd') . '.log', 'a');
  2. $fh .= '---------- START - [' . date('Y-m-d H:i:s') . '] ----------' . chr(13) . chr(13);
  3. $fh .= print_r($_REQUEST, true) . chr(13) . chr(13);
  4. $fh .= print_r($receiveData, true) . chr(13) . chr(13);
  5. $fh .= '---------- END - [' . date('Y-m-d H:i:s') . '] ----------' . chr(13) . chr(13);
  6. fwrite($fp, $fh);
  7. fclose($fp);