Gossamer Forum
Home : Products : DBMan : Customization :

Record IP

Quote Reply
Record IP
Im wanting to record a person's IP when they post a record to My db. The field will be hidden, and only admins will see the data in a search and a view. Thats the easy part, the part that Im having trouble with is actualy getting the IP into the record to begin with.

I just keep drawing a blank :(
Quote Reply
Re: [zeroisgod42] Record IP In reply to
That information can be gleaned in from some sort of server variable, I've seen stuff like that done. Somewhat depends on the server I would guess.

WHen I turn on DBman debug, I see things like

QUERY_STRING : db=defasult
REMOTE_ADDR : 131.230.xxx.xxx
REMOTE_PORT : 4965

x's added to protect the inocent non-spelling persons of human decent.
Quote Reply
Re: [zeroisgod42] Record IP In reply to
Check the FAQ noted below .. under Records (I think) for a thread called:

How can i store IP address in Database?

There are two thread combined in this record which will help you to find a solution.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/
Quote Reply
Re: [joematt] Record IP In reply to
The ip is available using:

$ENV{REMOTE_ADDR}

Last edited by:

Paul: Apr 3, 2003, 9:16 AM