Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $date = date('Y-m-d H:i:s');
- $input = file_get_contents("php://input");
- $log = "[".$date."] ".$input."n";
- $json = json_decode($input, true);
- $base_place = realpath(FCPATH);
- $log_location = $base_place.'/webhook_line.log';
- error_log($log,3,$log_location);
- http_response_code(200);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement