Created
July 30, 2017 06:14
-
-
Save zetas/5a0878228ad4c3930f5fdaef2a20c182 to your computer and use it in GitHub Desktop.
output variables to a logfile
This file contains 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 | |
$log = fopen('/tmp/webhook.log', 'a+'); | |
ob_start(); | |
var_dump($_SERVER); | |
$content = ob_get_clean(); | |
fwrite($log, $content); | |
fclose($log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment