I have two php files. Let's call them a.php
and b.php
.
When the user visits a.php
, I use exec()
to execute b.php
and b.php
generates an output.
My question is: how can I get this output displayed at a.php
or to another file when the process is complete in b.php
?
Here is my code:
exec("C:\wamp\bin\php\php5.5.12\php.exe C:\wamp\www\b.php 2>otst.txt");