Last active
August 29, 2015 14:21
-
-
Save folmert/7905157838f16ca65ac8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); // start buffer capture | |
var_dump( $VARIABLE ); // dump the values | |
$VARIABLE_CONTENTS = ob_get_contents(); // put the buffer into a variable | |
ob_end_clean(); // end capture | |
error_log( $VARIABLE_CONTENTS ); // log contents of the result of var_dump( $object ) | |
/* | |
add to php.ini | |
error_reporting = E_ALL & ~E_NOTICE | |
error_log = /errors.log | |
log_errors = On | |
and create in main dir errors.log | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment