http://it.php.net/manual/en/function.ftp-pasv.php

dopo che fai il login devi usare questo comando