Rev 1879 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1879 | Rev 1880 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | 2 | ||
| 3 | error_reporting(E_ALL); |
3 | error_reporting(E_ALL); |
| 4 | 4 | ||
| 5 | function atomd_connect($host, $port) |
5 | function atomd_connect($host, $port) |
| 6 | { |
6 | { |
| 7 | $socket = pfsockopen( |
7 | $socket = pfsockopen($host, $port, $errno, $errstr); |
| 8 | 8 | ||
| 9 | if (!$socket) |
9 | if (!$socket) |
| 10 | { |
10 | { |
| 11 | throw new Exception("$errstr ($errno)"); |
11 | throw new Exception("$errstr ($errno)"); |
| 12 | } |
12 | } |