lamoni / hostnameseek
A PHP class for dealing with hostnames
v1.0.0
2015-02-26 09:08 UTC
Requires
- php: >= 5.4.16
This package is not auto-updated.
Last update: 2024-12-21 17:15:52 UTC
README
A PHP class for dealing with hostnames
Dependencies
- PHP >= 5.4
Examples
Get all hostnames from /etc/hosts
$seek = new HostnameSeek('/etc/hosts'); print_r($seek->GetHosts());
Get hostnames matching certain items
$seek = new HostnameSeek('/etc/hosts', ['labdevice', 'labcomputer']); print_r($seek->GetHosts());