Hello there,
I have a problem with writing the output of a script into a file.My script takes the input from a different (second)script and should call another (third) script by giving the input from first script to the third.And the output of the third script should be redirected to a file.
I've used the following code in my program
header('location:full_report_exporting.php?test_runid='.$test_runids[$i][0]);
The above code worked well but its giving output on the screen which i dont want.I want to redirect the output to some file.
For that i used shell_exec function as shown below but i'm not getting any output into the xls_files (file name).
shell_exec("full_report_exporting.php?test_runid=".$test_runids[$i][0]." -nolog > xls_files/".$project_name."-".$test_run_names[$i][0]."-".$date."-Full_Report.xls");
Can anybody please help me with this?
Thanks in advance,
Shara.