> I was wondering if there is a way in PHP that you can determine the IP
> address? I am wondering because I am developing a simple web based
> program (in php) for use in a hospital setting and I want to do some
> checks to make sure that the program is not being run from a computer
> outside of the hospital. Instead of having user names and passwords, I
> thought it would be eaiser if I just checked the IP address, especially
> since this is not a program that really has to be secure, but I would
> like to prevent just anyone from using it. Is this possible with php?
> Thanks,
> Andrew V. Romero
Yes, you can get it from the webserver environment - there's a section in
the Php manual about this here:
http://www.php.net/manual/en/language.variables.external.php
'Environment variables' is the section you want
jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]