- Impact
- 907
I have a php script, the bottom part goes like this:
$fh = fopen("d1.txt", "a+");
if($fh==false)
die("unable to create file");
fwrite($fh, $submit."\n");
fclose($fh);
As you see, it is simple, it basically outputs the reults in a text file and thats about it.
I would like it to outputs the result on the web browser instead of creating a file.
How would i do it? Please provide the correct code...
Thank you so much.
$fh = fopen("d1.txt", "a+");
if($fh==false)
die("unable to create file");
fwrite($fh, $submit."\n");
fclose($fh);
As you see, it is simple, it basically outputs the reults in a text file and thats about it.
I would like it to outputs the result on the web browser instead of creating a file.
How would i do it? Please provide the correct code...
Thank you so much.