title: I try to know whether my amazon SNS endpoint getting notification or not in PHP
body: <p>Tried to get the amazon sns response on my http endpoint. Whenever i trigger ses send mail service to a non-existent email to get a bounce mail it should send the notification to the amazon SNS endpoint. To check this I tried to write a code as below but didn't get response for it. NOthing has bee shown in the code. Please help where i am doing wrong </p>
  
  <pre><code>    $file = 'posttest.php';
      $json = file_get_contents('php://input');
      `enter code here`$fp = fopen($file, 'w') or die('Could not open file!');
      $arr = json_decode($json, true);
      $var = $arr['Message'];
  
  fwrite($fp, $var) or die('Could not write to file');
  fclose($fp);
  </code></pre>