Lets say that i have 2 pages: index.php and service.php
index.php sends an http-post to service.php, containing a datestamp once every 5th minute.
How would i debug the post variables on service.php? Obviously i cant just do a
if(isset($_POST['key'])) {
var_dump($_POST['key']);
}
since it wont exist when i enter the page.
In ASP.NET i would just create a breakpoint, but how would i inspect the posted data in php?
Thanks
Save the status of the
$_POSTarray to a file usingvar_export(with the currenttime()to avoid overwrites), and inspect the file later.