I have a json data in a mysql row value like this :
...
Type: Posts; User: subins2000; Keyword(s):
I have a json data in a mysql row value like this :
...
I changed the code to this and it worked.
error_reporting( -1 );ini_set( 'display_errors','On' );
function getUserIpAddr(){
if (!empty($_SERVER['HTTP_CLIENT_IP'])){
return...
It worked when I used the error function you mentioned. I didn't know about this function. Thank you very much. You helped me a lot.
I have tried it and it returns the IP address of Server. When I'm using $_SERVER variable for finding IP address, it gave me an error. So I tried this new method. But I am getting the IP of Server. ...
I created this function to get the IP address of client.
function getIP(){
$response=@file_get_contents('http://www.netip.de');
if (empty($response)){throw new InvalidArgumentException("Error...
Thank you for your information. I update the post. Please solve my problem.
I am developing analytics site for my main site. I need to get the IP address of the user visiting. So I googled and i got a solution. But the solution is not working. The code is :-
function...