hi
you know when we use php to make a website, php usually outputs it in browsers.
Instead of outputing it to a browser, is it possible to store what it's supposed to output to a databse(or a file)?
like
<?php
if ($mode==1) echo "mode is 1";
if ($mode==2) echo "mode is 2";
?>
if I run the script above, it will output "mode is 1" in my browser. But I don't wanna see it. I wanna store it to my DB or a file. How do I do that? Possible?