This is the pseudo code for the question....The '$' signs are parameters passed to the script....
Make sure you check the path for your zip...
PHP Code:
/usr/local/pkware/pkzipc/pkzipc -add -path=none ${OUTPUTPATH}/${OUTPUTFILE} ${INPUTPATH}/${INPUTFILE}
Once it is done, then FTP the zip file to the other server
PHP Code:
ftp -n << EOF
verbose
open ${SERVER}
$LOGON
binary
mput *.Z
close
bye
EOF