Re: AW: AW: [PHP] Performance of ZLib

2002-08-13 Thread David T-G

Sascha --

...and then Sascha Braun said...
% 
% Thanks for the quick answer, but is tar scriptable via PHP?

You can drive tar, zip, gzip, lharc, arj, bzip2, or just about any other
archive program from the command line, and that means you can do it from
a php script with a system() call.

Note that zip with no compression is just as fast as tar or anything
else.  Yes, it stores the directory at the end of the archive, but it's a
fine way to go and perhaps more recognizable to more surfers out there.


% 
% Schura


HTH & HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75359/pgp0.pgp
Description: PGP signature


AW: AW: [PHP] Performance of ZLib

2002-08-13 Thread Sascha Braun

Thanks for the quick answer, but is tar scriptable via PHP?

Schura

-Ursprungliche Nachricht-
Von: Gareth Ardron [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 17:10
An: Sascha Braun
Betreff: Re: AW: [PHP] Performance of ZLib


At 16:46 13/08/2002 +0200, you wrote:
>Do you know another possibility to store multiple files in one package? -
>And most users in the web can use it, without getting special programms. I
>know tar can, but there either I don't know how fast it is. Maybe there is
>an freeware programm for all plattforms wich can untar, but a i don't know?
>
>But if you know?

stuffit expander will untar files on mac os9 and osX
tar will (obviously) untar on *nix boxes
winzip will untar files on windows machines

as for tar's speed, it's bloody fast.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




AW: [PHP] Performance of ZLib

2002-08-13 Thread Sascha Braun

Do you know another possibility to store multiple files in one package? -
And most users in the web can use it, without getting special programms. I
know tar can, but there either I don't know how fast it is. Maybe there is
an freeware programm for all plattforms wich can untar, but a i don't know?

But if you know?

Schura

-Ursprüngliche Nachricht-
Von: Jason Wong [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 05:48
An: [EMAIL PROTECTED]
Betreff: Re: [PHP] Performance of ZLib


On Tuesday 13 August 2002 09:46, Sascha Braun wrote:

> The funktionality is:
>
> Customer puts an 300 DPI High quality JPEG image into his shopping cart,
> after he checks out the Image or the images are getting compressed via
Zlib
> Library.

Have you tried doing a few test runs to see

1) By how much the files are compressed -- jpegs are already compressed and
usually compressing again will only shave a few percent off the size. In
some
cases the file size can actually increase when "compressed".

2) The average time taken to compress a file.

> So what about performance?

That is determined by your server -- CPU speed, amount of memory, speed of
HDDs.

--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
QOTD:
"East is east... and let's keep it that way."
*/


--
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