Hello!
Please tell me how can I write the retrieved HTML form results , using PHP, into some file in HTML format?
I know that I must do
$fp=fopen("myfile.html","+a") for appending things into it, without rewriting each time, and also that I can use
fwrite($fp, $myVariable);
but what it does - it appends the variable value AFTER the </html> tag in that target html file!
How can I do something like
echo "<table>";
echo "<tr>";
...
echo $myVariable;
etc., except that instead of echoing this stuff into the same file, which contains that script - it will be written in another file, which is opened by fopen(); ?????
Thank you very much!!!!😕