Hi,
I have a device that is posting raw data with no indexes that I am aware of and I would like to see what it's trying to post.
I have tried these different options to see if I could get anything
if (isset($_POST))
{
$string = "1 \n";
$string .= " ".$_POST." \n";
$string .= "2 \n";
$string .= " ".print_r(serialize($_POST), true)." \n";
$string .= "3 \n";
$string .= " ".var_dump($_POST)." \n";
$string .= "4 \n";
$string .= " ".var_export($_POST)." \n";
$fp = fopen('txtdump.txt', 'ab');
if ($fp)
{
fwrite($fp,$string);
fclose($fp);
echo 'OK';
}
}
all I get is:
1
Array
2
a:0:{}
3
4
When I use wireshark I get all kinds of data in hex that I can convert to ASCI to see tab delimited data.
How can I get this thing to print even the first part of the array contents to file?
I tried $_POST[0] or [1] and get offset errors.
Thanks for your ideas or input.
-Chad