Daniel Williams
Daniel Williams

Reputation: 2317

Enabling FTP functions in existing PHP install

I know that when installing PHP you use --enable-ftp in the command line to enable FTP.

But if I have a PHP install that doesn't have FTP support and I want to add it, is there a way? Something in PHP.INI?

Or do I need to simply reinstall?

Upvotes: 2

Views: 11680

Answers (2)

ArtisticPhoenix
ArtisticPhoenix

Reputation: 21661

You can also use this

https://github.com/phpseclib/phpseclib

if you want to do sFTP without enabling the ssh2 extension.

Upvotes: 0

Aschab
Aschab

Reputation: 1399

as of this link you have to add this to your php.ini:

extension=php_ftp.dll

Upvotes: 5

Related Questions