mirror of
https://github.com/chinayin/ip2region-core-php.git
synced 2025-12-02 19:42:48 +08:00
fix README.md
This commit is contained in:
parent
4e665979e5
commit
8cf067146d
@ -76,6 +76,8 @@ throw new \RuntimeException("failed to load vector index from '$xdb'.");
|
|||||||
如果你的 PHP 母环境支持,可以预先加载整个 xdb 的数据到内存,这样可以实现完全基于内存的查询,类似之前的 memory search 查询。
|
如果你的 PHP 母环境支持,可以预先加载整个 xdb 的数据到内存,这样可以实现完全基于内存的查询,类似之前的 memory search 查询。
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
use ip2region\XdbSearcher;
|
||||||
|
|
||||||
$ip = '1.2.3.4';
|
$ip = '1.2.3.4';
|
||||||
$xdb = './ip2region.xdb';
|
$xdb = './ip2region.xdb';
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user