Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: $ENV{REMOTE_ADDR} problem

by 1nickt (Canon)
on Oct 23, 2018 at 11:06 UTC ( [id://1224544]=note: print w/replies, xml ) Need Help??


in reply to $ENV{REMOTE_ADDR} problem

"i dont know wats the problem here"

The problem is you are lazy and intellectually undisciplined. How can you submit a post with a question written like the above? If you can't take a few seconds to capitalize or spell your words or use grammar or punctuation, why should anyone believe that you are doing differently in your code? (Obviously you are not.)

Until you learn and practice mental discipline and clear thinking, you will never succeed in your web programming: you are wasting your time. And that of those monks who are kind enough to try to decipher your garbage posts and help you.

You are a freeloader and I hate freeloading. You have shown yourself not worthy, by not using minimal effort, to dwell here and consume the Monastery's resources, and the only reason you have not been expelled as you would have been from any other place of learning, is that the Monks practice charity as part of our own discipline. But you are just wasting our time; shame on you.

Now you may think this is unfair because you spend hours working on your code trying to make it do what you want. But you are wasting your own time as well, because you do not do the most basic things to increase your understanding and skill level, even when the Monks have shown you those things many times.

For example, if $REMOTE_IP does not match $query, you should print out those variables and see what they contain, before you post here another question beginning with "i dont know wats the problem here."


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: $ENV{REMOTE_ADDR} problem
by bigup401 (Pilgrim) on Oct 23, 2018 at 11:33 UTC

    good response @lnickt

    i thought this would work also in cgi $ENV{REMOTE_ADDR}

    i changed to $cgi->remote_addr() and works

      You should take what 1nickt wrote and give it due consideration. You didn't post a working script, what you posted makes no sense at all. You said that $query contains a string (you didn't enclose it in quotes, nor end the line with a ;) and are now claiming that "select my remote_ip from tbl where me = me" is not equal to a value returned by $cgi->remote_addr(). This makes no sense

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1224544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-28 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found