I have a PHP script, say a.php, which is called from JS using Ajax (this is a POST request and some data is passed to the script).
I have another PHP script, say b.php, from which I would like to call a.php and pass it some data. I expect a.php to do the job just like if it was called from JS.
I don't want to do include('a.php'); because of possible collision between variable names.
How could I do this ?