[KLUG Members] web question
bill
members@kalamazoolinux.org
Mon, 22 Dec 2003 12:24:30 -0500
<?php
$ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
echo "$ip"; // print the ip number to the screen
?>
Put the above PHP code wherever you need it in your html.
My advice: avoid SSI.
kind regards,
bill
Rusty Yonkers wrote:
> Ok ... here is an interesting one for those who do web programming...
>
> I have to manage a number of Windows desktops. We have active
> desktop activated and displays the main web page for the internal
> website that runs on a Linux box running Apache.
>
> I want to have something in the page that will display the ip address
> of the workstation. Is there some way to gather this information
> when the computer connects and then put that into the page display?
> I would assume that it would be some sort of server-side include
> similar to like page count. We want to display this in the upper
> corner of the page so that if we are having a problem with a
> particular machine that we can simply find it by looking at the
> display...
>
>
>
> =====
> Rusty Yonkers
> CNE, MCP, A+, CCNA, Linux+, Server+, Network+ certified
> -----------------------------------------
> An Atomic Supergeek with an attitude!
> -----------------------------------------
> Currently using SuSE 8.2, Mac OS X, and WinXP (would love to get rid of last one)
>
> ................looking for penguin domination.....................
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>
>
>