Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

113 of 221 people (51%) answered Yes
Recently 4 of 10 people (40%) answered Yes


How can I save php output to the browser and a file?

Nov 27th, 2008 02:42
healthy man, dman, Rada Eulen, helmut ott, Ben Udall,

$output = "my output";
if($file=fopen($myfile, "w")) {  //open file for writing
	fwrite($file, $output);      //write to file
print $output; //display in the browser