jinkazama10
Programmer
I am just starting to learn PHP and I can't seem to find this anywhere. Basically I am running a script from the command line and I would like to capture the output and put it in a file but I would like to do so inside the script.
So instead of typing "myscript.php > myoutput.out" I could just type "myscript.php" and the myoutput.out would be automatically generated.
I apologize for asking what seems like such a stupid question but I honestly have tried searching the net for almost two days and I haven't been able to find a straight answer anywhere. Thanks.
So instead of typing "myscript.php > myoutput.out" I could just type "myscript.php" and the myoutput.out would be automatically generated.
I apologize for asking what seems like such a stupid question but I honestly have tried searching the net for almost two days and I haven't been able to find a straight answer anywhere. Thanks.