Posted By

Nek on 10/29/09


Tagged

object file array dump log dumpvar


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrianCoyDesign


Dump var into the file in the scripts's directory.


 / Published in: PHP
 

Create log.txt in scripts directory and set permissions to 0666 before use.

  1. $log = fopen( dirname(__FILE__)."/log.txt", "a" );
  2. var_dump($result);
  3. $data = ob_get_clean();
  4. fwrite($log, $data);
  5. fclose($log);

Report this snippet  

You need to login to post a comment.