Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the FTP SSL Connecting with the implicit mode #38

Open
peter279k opened this issue Nov 25, 2022 · 2 comments
Open

Support the FTP SSL Connecting with the implicit mode #38

peter279k opened this issue Nov 25, 2022 · 2 comments

Comments

@peter279k
Copy link
Member

peter279k commented Nov 25, 2022

As title, the FtpSSLConnection class is based on the ftp_ssl_connect. But it's only available on the explicit mode.

To support the FTP SSL connection with the implicit mode, it can use the cURL extension to complete that.

Some useful references are as follows:

@AmraniCh
Copy link
Member

Good point, but we have to know first that implicit FTP connections are no commonly supported among FTP servers and do not represent any FTP standard, unlike explicit mode see, as a result, implementation of FTP servers may vary, and compatibility issues might become a headache.

If we provide an implicit FTP connection we have to implement new API methods specific for implicit FTP connection usage because I don't think there is a way to create a new FTP resource handle that is created with the implicit mode and use this resource handle with the native FTP extension functions ftp_*, therefore if we decided to add this feature we have like to create another classes entities that have no relation with the current library design.

Note: I think it is not necessary to use cURL to create an implicit FTP connection, we can use socket or stream socket functions in PHP, or we can use our Lazzard component Lazzard/FtpBridge to do that but it has no stable release yet.

@peter279k
Copy link
Member Author

peter279k commented Nov 29, 2022

Thanks for your reply. I totally agree with your suggestions. And I think we can make the Lazzard/FtpBridge stable firstly.

Then creating another repository to use above FTP bridge to complete this issue.

Or using the stream socket client is the good idea to develop the FTP client with the implicit mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants