
ftp server address to http address
Quote:
> I would like to be able to get an ftp server name as a http address.
> i.e.
> if the server name is 'hobbo' and it address is 'ws26798.xyz.net.au'
> Is there any way I can get ws26798.xyz.net.au if I know hobbo.
> I have to use ftp as I'm transferring files, then I would like to let
> someone know where the file is so they can access it using a http://
> address.
Either I don't understand the question (quite possible) or you are mixing
apples and oranges.
The function gethostbyname() can be used to translate a valid host name into
an IP address.
However, there is no requirement that a system that runs an FTP server need
also run an HTTP server. So, in general there is no equivalence be{*filter*} the
names of FTP servers and HTTP servers.
Regards,
Will