title: PHP pass variable to include & Paypal IPN
body: <p>After a customer buy on the site, Paypal loads the "notify_url" page in which i run code to add to my database the information.</p>
  
  <p>So in my "notify_url" file "file1.php", there is something like this ($_POST['a'] = 77):</p>
  
  <pre><code>$a = $_POST['a'];
  $_POST['b'] = 88;
  $_SESSION['test'] = 'test'; 
  $action = 'buy';
  
  include('file2.php');
  </code></pre>
  
  <p>... and in file2.php:</p>
  
  <pre><code>echo $a; // result: ""
  echo $action; // result: ""
  echo $_SESSION['test']; // result: ""
  echo $_POST['b']; // result: ""
  echo $_POST['a']; result: "77"
  </code></pre>
  
  <p>Why do my variable don't follow in the include, but the POST does?</p>