How to call PHP script from another PHP script?

Dormoxima23

New Member
I have a PHP script, say \[code\]a.php\[/code\], 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 \[code\]b.php\[/code\], from which I would like to call \[code\]a.php\[/code\] and pass it some data. I expect \[code\]a.php\[/code\] to do the job just like if it was called from JS.I don't want to do \[code\]include('a.php');\[/code\] because of possible collision between variable names.How could I do this ?
 
Back
Top