note 126169 added to function.readfile
| From: | jorensmerenjanu at gmail dot com | Date: | Mon, 14 Jun 2021 08:31:51 +0000 |
| Subject: | note 126169 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216521@lists.php.net to get a copy of this message | ||
For anyone having the problem of your html page being outputted in the downloaded file: call the
functions ob_clean() and flush() before readfile()
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 85.254.75.233)
----
Manual Page -- https://php.net/manual/en/function.readfile.php
Edit -- https://main.php.net/note/edit/126169
Del: integrated -- https://main.php.net/note/delete/126169/integrated
Del: useless -- https://main.php.net/note/delete/126169/useless
Del: bad code -- https://main.php.net/note/delete/126169/bad+code
Del: spam -- https://main.php.net/note/delete/126169/spam
Del: non-english -- https://main.php.net/note/delete/126169/non-english
Del: in docs -- https://main.php.net/note/delete/126169/in+docs
Del: other reasons-- https://main.php.net/note/delete/126169
Reject -- https://main.php.net/note/reject/126169
Search -- https://main.php.net/manage/user-notes.php