Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.php > #19127
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Downloading strangeness: downloaded file has no content |
| Date | 2022-10-02 15:57 +0000 |
| Message-ID | <jptqn5F5ec9U1@mid.individual.net> (permalink) |
| References | <jpr2e0Fn0j4U1@mid.individual.net> <jpr993Fl2gbU1@mid.individual.net> <jprjkeFpihiU1@mid.individual.net> <jpt6jlFl2gaU2@mid.individual.net> |
On 02 Oct 2022 at 11:14:13 BST, "J.O. Aho" <user@example.net> wrote: > On 01/10/2022 21.44, Tim Streater wrote: > >>>> ob_clean (); > > This will just clean out the output buffer, so the max size would then > be limited of the buffer size, think you need to switch to use > ob_end_clean() which disables the output buffer and is recommended in > the php documentation for readfile. This solved the problem. >>>> readfile ($file); > > By the way, what value does the readfile return? > Also do you get an exception? I think I must have got a real error or exception at this point, as code after the readfile to check the readfile return and also compare with filesize() was not executed. I've not heard back from the hosting provider at this point. Thanks for your help. -- "The idea that Bill Gates has appeared like a knight in shining armour to lead all customers out of a mire of technological chaos neatly ignores the fact that it was he who, by peddling second-rate technology, led them into it in the first place." - Douglas Adams
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
Downloading strangeness: downloaded file has no content Tim Streater <timstreater@greenbee.net> - 2022-10-01 14:50 +0000
Re: Downloading strangeness: downloaded file has no content "J.O. Aho" <user@example.net> - 2022-10-01 18:47 +0200
Re: Downloading strangeness: downloaded file has no content Tim Streater <timstreater@greenbee.net> - 2022-10-01 19:44 +0000
Re: Downloading strangeness: downloaded file has no content "J.O. Aho" <user@example.net> - 2022-10-02 00:18 +0200
Re: Downloading strangeness: downloaded file has no content "J.O. Aho" <user@example.net> - 2022-10-02 12:14 +0200
Re: Downloading strangeness: downloaded file has no content Tim Streater <timstreater@greenbee.net> - 2022-10-02 15:57 +0000
Re: Downloading strangeness: downloaded file has no content Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-10-01 12:57 -0400
Re: Downloading strangeness: downloaded file has no content Tim Streater <timstreater@greenbee.net> - 2022-10-01 19:48 +0000
Re: Downloading strangeness: downloaded file has no content Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-10-01 19:13 -0400
Re: Downloading strangeness: downloaded file has no content Tim Streater <timstreater@greenbee.net> - 2022-10-02 16:01 +0000
csiph-web