I have a PHP script, say a.phpthat 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.phpand pass some data to it. I expect a.phpto complete the task just as if it had been called from JS.
I do not want to do include('a.php');due to a possible collision of variable names.
How can i do this?
source
share