Your IP address is <?= $HTTP_SERVER_VARS['REMOTE_ADDR'] ?> That is all case sensitive too, by the way.
Mike Ken Savage wrote: >Super new to PHP but I'm putting in the effort to learn quickly. >How would I output the user's IP address in a php file. > >I want the webpage to say... > >Your IP address is xx.xx.xx.xx > >thanks >Ken Savage >http://kensavage.com > > > -- 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]