Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Mar 20, 2019
Embed
What would you like to do?
<?php
/*
@author parzibyte
*/
move_uploaded_file($_FILES["archivo"]["tmp_name"], "post.json");
echo json_encode(
[
"metodo" => $_SERVER["REQUEST_METHOD"],
"encabezados" => getallheaders(),
"datos" => file_get_contents("php://input"),
"files" => $_FILES,
"post" => $_POST,
"cadena_consulta" => $_GET
],
JSON_PRETTY_PRINT
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment