Is there a script to compress files

Hello

Is there a script to compress files to tar or zip or rar or other type of compress

please help me

Hello,

Yes, there are PHP-libraries for compression, for example TAR/GZIP/BZIP2/ZIP Archives
As far as i know, they are all based on the native php compression functions

thanks