How can I zip a file from ftp and transferer to another in PHP? -
i have access ssh, know how can connect ftp create zip file transferer ftp?
is there script it?
thanks!
you cant using ftp.
but ofcourse can using ssh.
first login server using ssh
ssh -l username hostname
it inquire password. come in password , go directory directory resides.
then execute command
zip -r yourzipfilename.zip directoryname
it create zip file , can send ftp using ftp
command.
php
No comments:
Post a Comment