Lets say I got something simple like:
<?php
echo "yo";
echo "word";
?>
I want all those echos to write to a file instead of printing to the screen
without changing to a different function. Sort of like how in Unix you can
do ./my_prog < file1 to output to a file. In this case I want it all to be
done in code. For example, something like:
<?php
output_to_file_ instead_of_scre en();
echo "yo";
echo "word";
output_to_scree n();
?>
<?php
echo "yo";
echo "word";
?>
I want all those echos to write to a file instead of printing to the screen
without changing to a different function. Sort of like how in Unix you can
do ./my_prog < file1 to output to a file. In this case I want it all to be
done in code. For example, something like:
<?php
output_to_file_ instead_of_scre en();
echo "yo";
echo "word";
output_to_scree n();
?>
Comment