IT'S WORKING, GOOD DAMN, IT'S WORKING!
Yo, this was a really hard Job, if I look at the working snipped below!
Ey man, this was the second Time you helped me out,
Thanks alot. You are really a great PHP Guru I believe.
So, if my page is finished you will be one of the first Persons
to watch
Sascha Braun wrote:
> Do you know how to exclude the path informations in the tar archive?
Yes, first chdir to the ../images directory
http://www.php.net/getcwd
http://www.php.net/chdir
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Do you know how to exclude the path informations in the tar archive?
> Sascha Braun wrote:
> > Ok, somebody told me, the archive contains the Image, only winrar
> > seems not to show the image, grrr.
>
> ;-))
> That's why...i did see the image too!
>
> > I tried the gzip method and it did not wo
Sascha Braun wrote:
> Ok, somebody told me, the archive contains the Image, only winrar
> seems not to show the image, grrr.
;-))
That's why...i did see the image too!
> I tried the gzip method and it did not work that fine for me.
Hmz...too bad, because you will get smaller downloads then (use
Ok, somebody told me, the archive contains the Image, only winrar seems not
to show the image, grrr.
I tried the gzip method and it did not work that fine for me.
> Sascha Braun wrote:
> > Seems to work not that bad, but I got another Question.
> >
> > Why isn't there anything in the archive?
>
Sascha Braun wrote:
> Seems to work not that bad, but I got another Question.
>
> Why isn't there anything in the archive?
It works in here (just tested it), I don't know why it's empty (don't stop
reading here!!! :-) )
>
> This is my code yet:
>
> Header('Content-Type: application/x-tar');
> H
Seems to work not that bad, but I got another Question.
Why isn't there anything in the archive?
This is my code yet:
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 si
> 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 di
Now I tried to use your script:
$_REQUEST['image'] is =
'../images/2002/09/jpg/ls006022_pettersson_johan.jpg';
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?)
And if I open it with winrar it
Sascha Braun wrote:
> Hi,
>
> I want to make some people download files the server tar's on demand.
>
> But i don't know really how to send the files back to the browser.
>
> I used the following command for taring the file:
>
> $command = 'tar -c '.$arrResult['name'].'.tgz
> ../images/'.$arrResu
10 matches
Mail list logo