ftp_site example

// chmod any sub-objects if recursive.         if ( $recursive && $this->is_dir( $file ) ) {
            $filelist = $this->dirlist( $file );

            foreach ( (array) $filelist as $filename => $filemeta ) {
                $this->chmod( $file . '/' . $filename$mode$recursive );
            }
        }

        // chmod the file or directory.         if ( ! function_exists( 'ftp_chmod' ) ) {
            return (bool) ftp_site( $this->link, sprintf( 'CHMOD %o %s', $mode$file ) );
        }

        return (bool) ftp_chmod( $this->link, $mode$file );
    }

    /** * Gets the file owner. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false Username of the owner on success, false on failure. */
Home | Imprint | This part of the site doesn't use cookies.