how to download decrypted file without writing to disk first
<p>I have a script that can take an mp3 file on disk for a given <code>$path</code> variable (ie: <code>/var/recordings/file.mp3</code>) and send it to the browser to be player by a media player.  Here is the code:</p>

<pre><code>//Send the media asset to the browser
header('Content-type: audio/mpeg');
header('Content-length: ' . filesize($path));
header('Content-Disposition: filename="recording.mp3"');
header('X-Pad: avoid browser bug');
header('Cache-Control: no-cache');
header("Content-Transfer-Encoding: binary"); 
header("Content-Type: audio/mpeg, audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3");
print file_get_contents($path);
</code></pre>

<p>I now store the mp3 files in question in encrypted form, so I now read the file in question into a string and decrypt it using an encryption class.  I'd like to now send this decrypted file directly to the browser without outputting it into a file, and then having PHP read the contents of that file.  Is it possible?  I would assume I could just do <code>print $decrypted_string</code> but how would I specify the file size?</p>
