note 52038 deleted from function.fread by cmb

From: Date: Sun, 12 Jan 2020 08:22:24 +0000
Subject: note 52038 deleted from function.fread by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213853@lists.php.net to get a copy of this message
Note Submitter: james at reflexive dot net ---- Several of these examples use a Content-Disposition header to force the browser to save a file but then they specify the file name without quotes. This will cause problems for some browsers (Mozilla Fire Fox) if the file name contains a space. You must put quotes around the name if you want to work reliably for all files in all browsers. <?php header ("Content-Disposition: attachment; filename=$theFileName"); // bad header ("Content-Disposition: attachment; filename=\"$theFileName\""); // good ?>

« previous php.notes (#213853) next »