Search found 4 matches
- Mon Jun 16, 2008 8:13 pm
- Forum: PHP - Code
- Topic: Trying to implement a download script with fread function
- Replies: 7
- Views: 285
Re: Trying to implement a download script with fread function
done it! now it's working like a charm. tested in FF 2.0.0.14 and IE6 here's the fixes: removed: $fdl = fopen... at line 26 of the above mod vers. removed: fpassthru ($fdl); at line 32 (as Ole told me to do) added: fclose ($fdl) before "return;" at the end and checked that all braces were ...
- Mon Jun 16, 2008 2:15 pm
- Forum: PHP - Code
- Topic: Trying to implement a download script with fread function
- Replies: 7
- Views: 285
Re: Trying to implement a download script with fread function
changed to: echo fread($fdl, $speed*1024);
but still the same is happening.
but still the same is happening.
- Mon Jun 16, 2008 12:50 pm
- Forum: PHP - Code
- Topic: Trying to implement a download script with fread function
- Replies: 7
- Views: 285
Re: Trying to implement a download script with fread function
Thanks Ole for your reply, I've tried opening the file with "rb" instead of just "r" but nothing change and anyway on the original code, which is properly working without fread function, the file is opened with just "r". I've tried to remove the call to fpassthru() at t...
- Sun Jun 15, 2008 12:28 pm
- Forum: PHP - Code
- Topic: Trying to implement a download script with fread function
- Replies: 7
- Views: 285
Trying to implement a download script with fread function
Hello, I'm trying to implement a download script with fread function. This is the original download script, without fread function: function send_file($path, $file){ # Make sure the file exists before sending headers #------------------------------------------------- $mainpath = "...