> Now I tried to use your script:
> $_REQUEST['image'] is =
> Header('Content-Type: application/x-gzip');
> $command = 'tar -cf - ../images/' . $_REQUEST['image'] . ' | gzip -
> cf'; system( $command );
> It opens the download dialog again and lets me download the archive,
> but it's named
> download.gz (How can I change it to ls006022_pettersson_johan.gz?)
Add another header (another one???) ;-))
Header( 'Content-Disposition: attachment;
> And if I open it with winrar it says, the content is named 'download'
> Size is about
> 1600000 bytes, seems to be correct. when I try to extract the files
> there pops up
> an error message which says: Unexpected end of archive.
> Have you got a sollution on that?
Yes...my mistake, use passthru( $command ) instead of system( $command )
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php