if i want to give ftp download link ,but this ftp user is not anonymous it has a username and a password . usually we use that "ftp://username: password@ipaddresss" to give a link, but who know how to hide the username and password ,and use another way to give the username and password by php? thanks for any response!
why not arrange for it to be downloaded by http?
as you know , http server can also provide a file download but the ftp server have more features such as authentication ... http server can't or not easy to provide it .
but in the first place, you dont seem to require that sort of authentication.
Presumably, any authentication done is with PHP, so using ftp that way seems superfluous.
i am not going to arguing with you about if the ftp server has the right to survive where http server has the file transfer feature. but i want help not advise me to choose which server to give a file transfer feature, thank you !
why not use the anonymous or public user information
There is no method to give the username/password (securely) by PHP, in the way you want, as far as I know.
That is why I suggest that you simply use http, or use anonymous ftp, though the latter has its own problems.