Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

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

Entry

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, http://www.ttnr.org


$output = "my output";
if($file=fopen($myfile, "w")) {  //open file for writing
	fwrite($file, $output);      //write to file
}
print $output; //display in the browser
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com