Re: problem with downloading some pdf's
| From: | Tim Van Wassenhove | Date: | Fri, 09 Jul 2004 18:42:30 +0000 |
| Subject: | Re: problem with downloading some pdf's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190097@lists.php.net to get a copy of this message | ||
In article <40EED1C8.5040601@bigfoot.com>, Scott Taylor wrote:
> "I have tried twice, both times its starts to download but stops about
> half way or three-quarters the way complete. I get a error message that
> the download was not completed. When I go to look at the message there
> is just numbers. I have tried to download again but the "numbers" show
> up and it won't let me try again."
Perhaps the execution time has been exceeded?
> if (file_exists($file))
> {
> // a switch would be perfect here,
> // but it just didn't work last time...it was always
> // taking the 'default:' case
Probably because you forgot to put a break.
Also this is discussed in the manual.
And a lazy programmer would lookup the extension - content-type
relationship in a file like /etc/mime.types :)
--
Tim Van Wassenhove <http://home.mysth.be/~timvw>