note 45842 deleted from function.readfile by tomsommer

From: Date: Wed, 22 Sep 2004 19:32:18 +0000
Subject: note 45842 deleted from function.readfile by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77198@lists.php.net to get a copy of this message
Note Submitter: shadow at la3 dot org ---- Don't forget the colons arround the filename, or it will be cut if there are spaces: // Suppose $file = "a file with spaces.txt"; header("Content-Disposition: attachment; filename=".basename($file)); // User will get file "a" header('Content-Disposition: attachment; filename="'.basename($file).'"'); // User will get file "a file with spaces.txt"

« previous php.notes (#77198) next »