Seems to work not that bad, but I got another Question.
Why isn't there anything in the archive?
This is my code yet:
$command = 'tar -cf - ../images/' . $_REQUEST['image'];
I did put away the gzip routine couse I find it a little nerving if i always
have to open
two files ;)
The source pictures size is 406 KB, the download is about 340 KB in size,
isn't it wrong a bit?
PS.: Isn't it wrong, when I write greetings in english? Sounds so german,
what could i write else? Thank you very much.
> > Now I tried to use your script:
> > $_REQUEST['image'] is =
> > '../images/2002/09/jpg/ls006022_pettersson_johan.jpg';
> > <?
> > 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;
> filename=ls006022_pettersson_johan.gz' );
> > 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 )
> Grtz Erwin
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php