<?php $created = time(); $get = json_encode($_GET ); $post = json_encode($_POST ); $input = file_get_contents ( 'php://input' ); $cookie = json_encode($_COOKIE); $con = mysql_connect("localhost","root","admin"); mysql_select_db("api_test", $con); $sql = "INSERT INTO api (created, get, post, input, cookie) VALUES ('$created', '$get', '$post', '$input', '$cookie')"; //echo $sql."\n"; mysql_query($sql,$con); mysql_close($con); $str = ''; echo $str; ?>