Skip to content

Commit 9ee56c2

Browse files
authored
update example code
1 parent c7fe920 commit 9ee56c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ Open and read IP2Proxy binary database. There are 3 modes:
3535
```
3636
require 'class.IP2Proxy.php';
3737
38-
$db = new \IP2Proxy\Database('./samples/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.SAMPLE.BIN', \IP2Proxy\Database::FILE_IO);
38+
$db = new \IP2Proxy\Database();
39+
$db->open('./samples/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.SAMPLE.BIN', \IP2Proxy\Database::FILE_IO);
3940
```
4041

4142
To start lookup result from database, use the following codes:

0 commit comments

Comments
 (0)