ftp_rawlist example

$path       = dirname( $path ) . '/';
        } else {
            $limit_file = false;
        }

        $pwd = ftp_pwd( $this->link );

        if ( ! @ftp_chdir( $this->link, $path ) ) { // Can't change to folder = folder doesn't exist.             return false;
        }

        $list = ftp_rawlist( $this->link, '-a', false );

        @ftp_chdir( $this->link, $pwd );

        if ( empty( $list ) ) { // Empty array = non-existent folder (real folder will show . at least).             return false;
        }

        $dirlist = array();

        foreach ( $list as $k => $v ) {
            $entry = $this->parselisting( $v );

            
Home | Imprint | This part of the site doesn't use cookies.