Technical Frequently Asked Questions
Do I encode your url in the action field?
No, as the form 's action is never going to be called, it probably does not matter what is in there.
I have attached a much simpler examples that has been designed for servicing robot requests. Sorry that I did not think to give this to you earlier.
- valuepairs.txt, is a generic template.
- perl.txt, is designed for easy parsing by a PERL script.
- php.txt, has been designed for easy parsing by a PHP script.
To use these you use an asp page or the like to replace the <%ipaddress%> tag with the real ip address that you want resolved. Then you simply return the rest of the template as is to the calling applications request. GeoSelect will see the tags as they pass back through the server and fill them in. The calling app can them parse the results back out of the page.
The GeoSelect tags do not appear to have any effect when I put them on the page?
Firstly, you will need to do a view source on the page to check whether the tags have just pass straight though, or been removed?
I try to run geolyzer.exe, I get msvpc60.dll not found?
Basically, all it needs is a copy of the msvpc60.dll in the system32 directory. The dll does not need to be registered in any way. It does not contain any controls that need to be registered. (What is does is provide the C++ STL - Standard Template Library)
my firewall cause a problem?
The installation program (and GeoSelect once it is installed) uses http to connect to our server to download the map files. If your firewall is configured to block out bound http connections then you can download the map.zip file manually from http://www.geoselect.com/map.htm using the same credentials provided earlier. You can then extract this to the directory the you nominated during the installation process. (Normally
c:\Geobytes ) If in doubt, if may be a good idea to run the installation again.
If this is the case then you will need to either open your firewall to out bound requests to http://www.geoselect.com/map.htm so that it can download the map, or periodically (once a week or so) download a copy of the map manually. I would recommend the manual download due to your special security requirements.
To install the update, perform one of the following - Manual or Automatic processes ...
Manual - just extract the geoselect.dll from the attached zip archive and copy it to the script directory where it was installed previously. You can then add it back in to the filter list by following steps 1-10 at http://www.geoselect.com/IsapiFilterInstructions.htm
Automatic - Extract the files to a temporary directory and run setup.exe. You can safely install over the top of the previous installation to the same directories etc.
Any plugins to the web-server? I am using .php
GeoSelect is an ISAPI filter. It extends the native functionality of the webserver. Once GeoSelect is installed, there is no need to install any other modules or components.
Below are some examples of using the Geobytes Headers from ASP, PHP and Perl.
Example Using Geobytes Headers
<% City=Request.ServerVariables(“HTTP_GEOBYTESCITY”) %>
Can GeoSelect pre-select a language based on where the visitor is coming
Yes, for this to work you would identify which language that you wish to
target at which countries, and then use <geoif> tags around each
language's version of the content. In some countries like Canada, you may want
to target different languages to different regions, which you can also do with
The code do this may look something like this.
<geoif location="fr,pf,caqu"><!--France, and French
Polynesia, and the region of Quebec in Canada>
<p>French content would go here</p>
<p>Japanese content would go here</p>
<geoif default><!--Everyone else>
<p>English content would go here</p>
Using the following syntax, where would Italy (IT) go?
Any visitors from Italy would fall see the default text.
Do I need to test for [geoif location=""] as NO COUNTRY?
No. default catches everything that has fallen through.
Just for your info, here is a little extra on how it works.
First the order that the <geoif>'s appear is not relevant. You can place the
<geoif default> or <geoif geodefault> at the top if you like, it does not
matter. What GeoSelect does is try to locate the content that best matches
the viewers location. It will try to match first on City, then Region, then
Country. Finally it will use the geodefault content if specified, or if
there is no geodefault then the default, and if no default is specified then
it will return none of the options.
So the order of precedence is
If GeoSelect is unable to resolve the location then it will immediately opt
for the default content if it is defined, or if not specified will remove
the entire <geoselect>...</geoselect> block and replace it with nothing.
What is the location bar's purpose?
The location bar allows you to view a page as it would be seen from different locations. It is intended that developers will use it to test
and demo their pages - to show what the page would look like when viewed
from different locations.
Can I change GeoSelects logging
insert the current "space" delimited insert to something else?
Yes, this is totally user configurable. The insert is formatted according to an
insert template called "geoselect:LogFileInsert" in the templates.txt file. (The file is located in the directory that you nominated as the "Geobytes
directly" during installation.) There is a little more info on this on page
18 of the GeoSelect User Guide.