Untar remotely

I need to upload tar or zip files to a unix server than unzip or untar them remotely. Any suggestions on the easiest way to do the remote untar or unzip? For example does someone know of a cgi script or something?

Thanks -jz

use scp or ftp or sftp to copy the file to the remote server

ssh command can also be used.

Scp $file $servername:$path
ssh $servername 'cd $path, tar -xzf $filename'