note 52038 added to function.fread

From: Date: Tue, 19 Apr 2005 18:34:13 +0000
Subject: note 52038 added to function.fread
Groups: php.notes 
Request: Send a blank email to php-notes+get-88222@lists.php.net to get a copy of this message
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 ?> ---- Manual Page -- http://www.php.net/manual/en/function.fread.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52038 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52038&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52038&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52038&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52038&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52038&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52038&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88222) next »