PHP

var dump to file

<?php

ob_start();
var_dump($STRING_TO_DUMP);
$output = ob_get_clean();

$outputFile = “output.txt”;
$fileHandle = fopen($outputFile, ‘a’) or die(“File
creation error.”);
fwrite($fileHandle, $output);
fclose($fileHandle);

?>

+++++++++++

This entry was posted in   PHP.
Bookmark the   permalink.

admin has written 114 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>