aboutsummaryrefslogtreecommitdiffstats
path: root/php/misc.php
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-13 09:12:28 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-13 09:12:28 +0200
commitb17c9ee6046735433e4ba037c9b60c5f592bd15e (patch)
tree55726d2a51f187060e14d31bee2388f9aabe2b5b /php/misc.php
parent34df293dec1ee19cde50e33f757c8eefdbfc33d9 (diff)
downloadfileup-b17c9ee6046735433e4ba037c9b60c5f592bd15e.tar.gz
/php/move.php
Diffstat (limited to 'php/misc.php')
-rw-r--r--php/misc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/php/misc.php b/php/misc.php
index 69cd654..556d411 100644
--- a/php/misc.php
+++ b/php/misc.php
@@ -9,5 +9,13 @@ function generate_email_verification_link()
}
+function var_error_log( $object=null ){
+ ob_start(); // start buffer capture
+ var_dump( $object ); // dump the values
+ $contents = ob_get_contents(); // put the buffer into a variable
+ ob_end_clean(); // end capture
+ error_log( $contents ); // log contents of the result of var_dump( $object )
+}
+
?>