Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22096

paulstuttard on "[Plugin: Amazon Link] Mobile support?"

$
0
0

Hi,

I have to admit I have not tried it. My mobile makes phone calls (badly) and not much else.

The plugin relies on the global variable $_SERVER['REMOTE_ADDR'] to get the IP address of the visitor.

Things to try (on your mobile device):

  1. Visit http://www.ip2nation.com and see what IP address and country is being reported
  2. If this is correct, try setting up a 'info.php' page on your server and looking for the 'REMOTE_ADDR' item - check it matches the one reported in 1.
  3. If 1. is not correct, try visiting http://www.maxmind.com/en/locate_my_ip to see if that gives a better result.

I have found that the ip2nation database is failing for a lot of my IP addresses, and have been investigating swapping to the MaxMind one.

--- info.php ---
To create an 'info.php' page, upload a file called info.php to your webserver with the following contents (then browse to it):

<?php phpinfo(); ?>

You should get output similar to this one:

http://www.vmth.ucdavis.edu/phpfiles/phpinfo.php
-----------------

Let me know what you discover!

Paul


Viewing all articles
Browse latest Browse all 22096

Trending Articles