Hi,
seems a content-type error:
try:

header("Content-Disposition: attachment; filename=".$FileName);
header("Content-Type: binary/octet-stream/force-download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".strlen($FileName));
header("Pragma: no-cache");

On Wed, Dec 10, 2008 at 12:55 PM, rockobop <[EMAIL PROTECTED]> wrote:

>
> hello to all
>
> I have a function to download files. zip to my users, and for that we
> use the following code.
>
>
>  $FileName = 'Backup09-12-2008~13_48_07.zip';
>  $path = sfConfig::get('sf_upload_dir').'\tmp
> \Backup09-12-2008~13_48_07.zip';
>
>
>  header ("Content-Disposition: attachment; filename=".
> $FileName."\n");
>  header ("Content-Type: application/octet-stream");
>  @readfile($path);
>
>
>
> but I find a problem, in my house, a code with a configuration of WAMP
> me works well, theoretically at work with the same configuration does
> not work for me, and it does not work for me at the time of boarding
> the official server that is hosted on linux .
> the failure occurs to me is that the files I downloaded the corrupt by
> some strange reason.
> is not what the problem is, I hope I can help find the solution.
>
> greetings
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to