M
MarkusJNZ
Hi all, does anyone know how I can parse an ftp url to retrieve the
server, login and password?
e.g. given a ftp url like
ftp://ftplogin:[email protected]
I can get out the following info
server = subdomain.domain.com
password = mypass
login = ftplogin
I can successfully get the url etc by doing string parsing etc but I
would like a better way which is not open to interpretation.
e.g. Someone might have a @ or a : in their password then the string
parsing may run into problems.
TIA
Markus
=================================
jhgklioplsjdujehhrejhjrejhekdsdlkasdlerksdksd
server, login and password?
e.g. given a ftp url like
ftp://ftplogin:[email protected]
I can get out the following info
server = subdomain.domain.com
password = mypass
login = ftplogin
I can successfully get the url etc by doing string parsing etc but I
would like a better way which is not open to interpretation.
e.g. Someone might have a @ or a : in their password then the string
parsing may run into problems.
TIA
Markus
=================================
jhgklioplsjdujehhrejhjrejhekdsdlkasdlerksdksd