note 14038 rejected and deleted from function.echo.php by zak

From: Date: Sat, 14 Jul 2001 23:25:28 +0000
Subject: note 14038 rejected and deleted from function.echo.php by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-15387@lists.php.net to get a copy of this message
Is there a way to redirect output from echo or print so it can be sent into a file? Say I have a function: function create_code() { echo "some code"; } I want to sometimes output this in the browser, and sometimes save the output in a file... How is this done?

« previous php.notes (#15387) next »