Finding Hostname of Browser Client.
| From: | Keith Sloan | Date: | Fri, 22 Feb 2002 20:46:04 +0000 |
| Subject: | Finding Hostname of Browser Client. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85895@lists.php.net to get a copy of this message | ||
I have a friend with a PhotoLibrary web site.
I am trying to automate some of his work. I tried to create a PHP
script/program? that
would check for missing files and upload. I am testing on my laptop with
loopback.
It all works if I give the ftp routine that does the ftp_connect a hostname
i.e. Localhost
or the name of my machine. But if I use 127.0.0.1 it fails to connect.
Ideally I would
like to use $HTTP_REMOTE_ADDR to set the address but as it insist on the
name
I am stuck. Ideally I would like to run the script and have the ftp server
on the machine that
he uses to dial into the ISP i.e. Dynamically allocated IP address. I
suspect that his ISP
is not going to resolve an address to such a machine.
Any ideas ?
Thanks Keith
--
Keith , Jenny & Family Sloan
keith.sloan@ukonline.co.uk
http://web.ukonline.co.uk/keith.sloan/