PHP doesn't ship with an ftp class or namespace, but you can compile PHP with the PHP: --enable-ftp flag to use this - Muqsit said