I want to have my php page email me or my 2nd email (i have future usage so just testing right now) based on the visitor ip.
is there a way to take getenv(HTTP_ADDR)
and then read it as a string.
basicly I want to be able to read the first 2 blocks.
i.e. 123.123.234.234 I want to read 123.123.
and then make a decision based on that who I email by setting a variable to 1 if main email or 2 if secondary email
my question is though how do I read
$ip = getenv(HTTP_ADDR);
as a string later on