location based if statement
Posted: Sat Feb 21, 2004 12:14 am
i dont even know if the subject makes sense.
how would i make php write out one line of text if the location (the browser location) is somewhere (say: http://127.0.0.1) and print out something else if the location is somewhere different (say: domain.com)
im sure it would be something like:
if
location = http://127.0.0.1
echo "localhost"
elseif
location = http://domain.com
echo "away from home"
how would i make php write out one line of text if the location (the browser location) is somewhere (say: http://127.0.0.1) and print out something else if the location is somewhere different (say: domain.com)
im sure it would be something like:
if
location = http://127.0.0.1
echo "localhost"
elseif
location = http://domain.com
echo "away from home"