Source Code for ip.php file.

Moderator: Project members

Post Reply
Message
Author
glenara
504 Command not implemented
Posts: 6
Joined: 2004-07-16 18:33
First name: Glen
Last name: Arason
Location: Edmonton, Alberta, Canada

Source Code for ip.php file.

#1 Post by glenara » 2004-07-18 17:04

Is the source code for the ip.php file available anywhere?
I have another application where it would be useful and there's no point re-inventing the wheel if it available here.

Thanks
Glen

User avatar
botg
Site Admin
Posts: 35562
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#2 Post by botg » 2004-07-18 23:30

Wheels are so simple, it's faster to reinvent them than to reuse one:

Code: Select all

<?php

header("Content-type: text/plain");

echo getenv("REMOTE_ADDR");
echo "\r\n";

?>

glenara
504 Command not implemented
Posts: 6
Joined: 2004-07-16 18:33
First name: Glen
Last name: Arason
Location: Edmonton, Alberta, Canada

#3 Post by glenara » 2004-07-19 00:28

Pretty sraight forward. I tend to think these things are more complicated than they really are...

Thanks kindly.
Glen

Post Reply