note 57639 deleted from function.header by bjori

From: Date: Mon, 27 Mar 2006 09:46:13 +0000
Subject: note 57639 deleted from function.header by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106710@lists.php.net to get a copy of this message
Note Submitter: folnin at gmail dot com ---- To webmaster at bandliste dot de. ... header("Content-Length: ".$content_len); // MUST be a number for IE header('Content-Type: audio/mpeg'); header('Content-Disposition: attachment; filename="'.$dateiname.'"'); } else { header("Content-Length: ".(string)(filesize($path))); header('Content-Type: audio/mpeg'); header("Content-Disposition: attachment; filename=".$dateiname.""); } ... If you change "Content-Disposition" from "inline" to "attachment" it tels browser to download file. Even if it is a picture or something else browser-viewable. Correct me if I'm wrong.

« previous php.notes (#106710) next »