Recent Changes - Search:

PmWiki

pmwiki.org

edit SideBar

Tips

Slackware 10.2 Apache Log file

/var/log/apache/...

Display IP Address

On a remote server to display the IP of the the requesting computer I used this

<?php
$ip = getenv('REMOTE_ADDR');
PRINT("$ip");
?>

You might be able to use http://checkip.dyndns.org:8245/ and clean it up a bit with grep and or sed

Save Page Results as Text File

Using the php page from above on my hosted site, so from my home computer I can use lynx ro return just my IP address, (you use this on the client to store the IP address in a text file).

lynx -dump "http://www.virtual-weltanschauung.com/t3.php" > ip.log

Whereas with a web brower it would simply display the IP number, this puts it wherever you want it.

See my Linux tidbits part http://www.virtual-weltanschauung.com/pmwiki/pmwiki.php?n=Main.Tidbits

Edit - History - Print - Recent Changes - Search
Page last modified on May 05, 2006, at 04:04 AM