Lines Matching refs:to
5 This script uses the local copy of the ip-to-country.com
6 database available on all php.net mirror sites to find
11 We have an index to speed up the search. The first line of
12 the index file contains the step value used to create the
16 starting indexes (pointing to the data file).
18 The data file has a fixed record size format to ease
31 Some things to consider:
34 This is partly for safety reasons, not to bog down the
43 // Try to find out the country of the user and
59 // Convert the IP number to some useable form for searching
62 // Find the index to start search from
65 // If we were unable to find any helpful entry
86 // Indexed part and record number to jump to
91 __DIR__ . "/../backend/ip-to-country.idx",
97 // convert current IP to something useful
135 $_SERVER['DOCUMENT_ROOT'] . "/backend/ip-to-country.db",
142 // Jump to record $idx
152 // where we expected to find the IP
157 // Try to read record
160 // Unable to read the record => error
163 // Split the record to it's parts
168 // Getting closer to the end of the indexed region
199 // if they are behind a proxy then only figure out which IP belongs to the