php56-krisp

Description:

php 5.6 KRISP 확장

Features:

sample codes:
1
<?php
2
$searches = array ('oops.org', 'kornet.net', 'yahoo.com', 'kldp.org');
3
4
try {
5
$kr = new KRISP ();
6
7
$kr->mtimeInterval (0);
8
$kr->debug ();
9
10
foreach ( $searches as $v ) {
11
$r = $kr->search ($v);
12
13
if ( $r === false )
14
continue;
15
16
print_r ($r);
17
$kr->debug (false);
18
}
19
20
$kr->close ();
21
} catch ( KRISPException $e ) {
22
fprintf (STDERR, "%s\n", $e->getMessage ());
23
$err = preg_split ('/\r?\n/', $e->getTraceAsString ());
24
print_r ($err);
25
}
26
?>
Copied!

Reference:

Dependencies:

Sub Packages:

  • None

Releated Packages:

Last modified 2yr ago