File: README

package info (click to toggle)
php-net-publicsuffix 0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 76 kB
  • ctags: 50
  • sloc: php: 153; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Net_PublicSuffix README
=======================

Net_PublicSuffix is a php class designed to facilitate access to the
public suffix list (see http://publicsuffix.org/).

Its primary interface is Net_PublicSuffix::registered_domain($d),
which determines the publicly registerable part of DNS label $d.

For example:

-------------------
 require_once('Net/PublicSuffix.php');

 $a = Net_PublicSuffix::registered_domain("www.example.com");
 $b = Net_PublicSuffix::registered_domain("www.monkeys.example.co.uk");

 // $a should be "example.com"
 // $b should be "example.co.uk"
-------------------


Note that the module depends heavily on the existence of a local copy
of the public suffix list, which it assumes to be in the filesystem
at:

 /usr/share/publicsuffix/public_suffix_list.dat

On debian systems, you should be able to get this by installing the
"publicsuffix" package.

I haven't yet bothered to get this module into PEAR properly.  If
anyone wants to help do that, please let me know.

 -- Daniel Kahn Gillmor <dkg@fifthhorseman.net>