Re: problem with download script on safari and ie 7
| From: | Jim Lucas | Date: | Mon, 08 Oct 2007 14:44:37 +0000 |
| Subject: | Re: problem with download script on safari and ie 7 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262906@lists.php.net to get a copy of this message | ||
Hulf wrote:
header("Content-Length: ".filesize($file));Ok, for the third time, I am going to ask, why are you running filesize() on a variable that doesn't exist. You are pulling a variable out of the DB called $size. From the scripts that you posted a few weeks ago, the upload handling script showed this $size column was the actual size of data. So, just use $size instead of an undefined variable. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare